-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathDefault.cshtml
More file actions
44 lines (38 loc) · 1.63 KB
/
Default.cshtml
File metadata and controls
44 lines (38 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage<SGFDevs.Models.ResetPasswordModel>
<div class="container">
<div class="form">
<header>
<h1>Reset your password</h1>
<p>Choose a new password for your Springfield Devs account.</p>
</header>
@if (string.IsNullOrWhiteSpace(Model.MemberId) || string.IsNullOrWhiteSpace(Model.Token))
{
<p>This reset link is invalid or has expired.</p>
<p><a href="/forgotten-password">Request a new reset link</a></p>
}
else
{
@using (Html.BeginUmbracoForm("ResetPassword", "Account", FormMethod.Post))
{
@Html.ValidationSummary(true)
<input asp-for="MemberId" type="hidden" />
<input asp-for="Token" type="hidden" />
<div class="field">
<label asp-for="Password"></label>
<input asp-for="Password" class="form-control" />
<span asp-validation-for="Password" class="text-danger"></span>
</div>
<div class="field">
<label asp-for="ConfirmPassword"></label>
<input asp-for="ConfirmPassword" class="form-control" />
<span asp-validation-for="ConfirmPassword" class="text-danger"></span>
</div>
<footer>
<button class="button tall wide" type="submit">Update password</button>
<p><a href="/login">Back to login</a></p>
</footer>
}
}
</div>
</div>
<div class="mt_75"></div>