Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jamie Attwood 210 posts 508 karma points c-trib
    Oct 17, 2018 @ 21:45
    Jamie Attwood
    0

    Adding Password Confirm functionality to Register Member

    Can anyone explain how I can add Password Confirm functionality to the Register Member razor snippit contained in Version 7.12.3? The snippit uses:

    var registerModel = Members.CreateRegistrationModel("custom-member-type");
    

    Looking at the RegisterModel, there does not seem to be any entry created for this. I think the correct way would be to use data annotations for this. Something in the RegisterModel like:

    [Compare("Password")]
    public string ConfirmPassword { get; set; }
    

    I tried to derive from that class but no go. It would be a shame to have to manually rebuild the whole process manually for something that is contained in the back-office member creation process out of the box.

    Thanks in advance....

    Jamie

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies