Reset password implementation

This commit is contained in:
2013-01-02 14:18:12 -05:00
parent e88065e925
commit 4af8981a10
17 changed files with 338 additions and 47 deletions
+1
View File
@@ -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>
}
+28
View File
@@ -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>
}
+34
View File
@@ -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>
}