Open Thieum opened 12 years ago
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.
The following code in / Areas / MvcMembership / Views / UserAdministration / Password.cshtml :
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.