Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation of new passwords in UserAdministration #25

Open
Thieum opened this issue May 8, 2012 · 0 comments
Open

Validation of new passwords in UserAdministration #25

Thieum opened this issue May 8, 2012 · 0 comments

Comments

@Thieum
Copy link

Thieum commented May 8, 2012

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant