Skip to content

Validation of new passwords in UserAdministration #25

Description

@Thieum

The following code in / Areas / MvcMembership / Views / UserAdministration / Password.cshtml :

  using(Html.BeginForm("SetPassword", "UserAdministration", new{ id = Model.User.ProviderUserKey })){   
  <fieldset>                
    <p>                 
      <label for="password">New Password:</label>                   
      @Html.TextBox("password")             
    </p>                
    <input type="submit" value="Change Password" />         
  </fieldset>           
  }

does not provide any validation for the password as defined in the ChangePasswordModel.

Both should be using a common definition of the validation rules to avoid errors in the user administration part of the website.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions