Reset password implementation
This commit is contained in:
@@ -24,5 +24,6 @@
|
||||
<legend></legend>
|
||||
@Html.EditorForModel()
|
||||
<input type="submit" value="Log in" class="btn btn-primary" />
|
||||
@Html.ActionLink("Forgot Password?", "ResetPassword", new { Model.Username }, new { @class = "pull-right" })
|
||||
</fieldset>
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
@model MileageTraker.Web.ViewModels.Account.NewPasswordViewModel
|
||||
|
||||
@{
|
||||
ViewBag.Title = "New Password";
|
||||
Layout = "~/Views/Shared/_Layout.login.cshtml";
|
||||
}
|
||||
|
||||
@section Styles
|
||||
{
|
||||
<link href="@Url.Content("~/Content/Account.Login.css")" rel="stylesheet" type="text/css" />
|
||||
}
|
||||
|
||||
@using (Html.BeginForm("NewPassword", "Account", FormMethod.Post, new {@class = "form-login"})) {
|
||||
|
||||
<div class="header"></div>
|
||||
|
||||
<h2>@ViewBag.Title</h2>
|
||||
|
||||
@Html.AntiForgeryToken()
|
||||
@Html.Partial("_ValidationSummary")
|
||||
|
||||
<fieldset>
|
||||
<legend></legend>
|
||||
@Html.EditorForModel()
|
||||
<input type="submit" value="Set Password" class="btn btn-primary" />
|
||||
</fieldset>
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
@model MileageTraker.Web.ViewModels.Account.ResetPasswordViewModel
|
||||
|
||||
@{
|
||||
ViewBag.Title = "Forgot password?";
|
||||
Layout = "~/Views/Shared/_Layout.login.cshtml";
|
||||
}
|
||||
@section Styles
|
||||
{
|
||||
<link href="@Url.Content("~/Content/Account.Login.css")" rel="stylesheet" type="text/css" />
|
||||
}
|
||||
|
||||
@using (Html.BeginForm("ResetPassword", "Account", FormMethod.Post, new {@class = "form-login"})) {
|
||||
|
||||
@Html.Partial("_StatusMessage")
|
||||
|
||||
<div class="header"></div>
|
||||
|
||||
<h2>@ViewBag.Title</h2>
|
||||
|
||||
<p>Enter your username to
|
||||
begin resetting your password. An email will
|
||||
be sent to you with instructions for completing the process.
|
||||
</p>
|
||||
|
||||
@Html.AntiForgeryToken()
|
||||
@Html.Partial("_ValidationSummary")
|
||||
|
||||
<fieldset>
|
||||
<legend></legend>
|
||||
@Html.EditorForModel()
|
||||
<input type="submit" value="Submit" class="btn btn-primary" />
|
||||
@Html.ActionLink("Login", "Login", new { Model.Username }, new { @class = "pull-right" })
|
||||
</fieldset>
|
||||
}
|
||||
Reference in New Issue
Block a user