10
|
1 @model Agendas.Web.Models.ChangePasswordModel
|
|
2
|
|
3 @{
|
|
4 ViewBag.Title = "Change Password";
|
|
5 }
|
|
6
|
|
7 <h2>Change Password</h2>
|
|
8 <p>
|
|
9 Use the form below to change your password.
|
|
10 </p>
|
|
11 <p>
|
|
12 New passwords are required to be a minimum of @ViewBag.PasswordLength characters in length.
|
|
13 </p>
|
|
14
|
|
15 <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
|
|
16 <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
|
|
17
|
|
18 @using (Html.BeginForm()) {
|
|
19 @Html.ValidationSummary(true, "Password change was unsuccessful. Please correct the errors and try again.")
|
|
20 <div>
|
|
21 <fieldset>
|
|
22 <legend>Account Information</legend>
|
|
23
|
|
24 <div class="editor-label">
|
|
25 @Html.LabelFor(m => m.OldPassword)
|
|
26 </div>
|
|
27 <div class="editor-field">
|
|
28 @Html.PasswordFor(m => m.OldPassword)
|
|
29 @Html.ValidationMessageFor(m => m.OldPassword)
|
|
30 </div>
|
|
31
|
|
32 <div class="editor-label">
|
|
33 @Html.LabelFor(m => m.NewPassword)
|
|
34 </div>
|
|
35 <div class="editor-field">
|
|
36 @Html.PasswordFor(m => m.NewPassword)
|
|
37 @Html.ValidationMessageFor(m => m.NewPassword)
|
|
38 </div>
|
|
39
|
|
40 <div class="editor-label">
|
|
41 @Html.LabelFor(m => m.ConfirmPassword)
|
|
42 </div>
|
|
43 <div class="editor-field">
|
|
44 @Html.PasswordFor(m => m.ConfirmPassword)
|
|
45 @Html.ValidationMessageFor(m => m.ConfirmPassword)
|
|
46 </div>
|
|
47
|
|
48 <p>
|
|
49 <input type="submit" value="Change Password" />
|
|
50 </p>
|
|
51 </fieldset>
|
|
52 </div>
|
|
53 }
|