161 lines
7.1 KiB
Plaintext
161 lines
7.1 KiB
Plaintext
@using EnVisage.Code
|
|
@using EnVisage.Models;
|
|
@model RestorePasswordModel
|
|
@{
|
|
Layout = "";
|
|
}
|
|
<!DOCTYPE html>
|
|
<!--[if IE 9]> <html class="ie9 gt-ie8"> <![endif]-->
|
|
<!--[if gt IE 9]><!-->
|
|
<html class="gt-ie8 gt-ie9 not-ie">
|
|
<!--<![endif]-->
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
<title>Forgot Password - Prevu</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
|
|
<link href="//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,400,600,700,300&subset=latin" rel="stylesheet" type="text/css">
|
|
@Styles.Render(String.Format("{0}/{1}", Constants.C_BUNDLE_STYLES_BASE_PATH, "prevu-commonstyles"))
|
|
@Styles.Render(String.Format("{0}/{1}", Constants.C_BUNDLE_STYLES_BASE_PATH, "prevu-accountstyles"))
|
|
@Scripts.Render("~/Scripts/jquery-2.0.3.min.js")
|
|
</head>
|
|
<body class="theme-default page-signup">
|
|
<!-- Page background -->
|
|
<div id="page-signup-bg">
|
|
<!-- Background overlay -->
|
|
<div class="overlay"></div>
|
|
<!-- Replace this with your bg image -->
|
|
<img src="~/Content/images/signin-bg-1.jpg" alt="">
|
|
</div>
|
|
<!-- / Page background -->
|
|
<!-- Container -->
|
|
<div class="signup-container">
|
|
<!-- Header -->
|
|
<div class="signup-header">
|
|
<span class="logo">
|
|
<img src="~/Content/images/prevu-m.png" alt="">
|
|
</span>
|
|
<!-- / .logo -->
|
|
</div>
|
|
<!-- / Header -->
|
|
<!-- Form -->
|
|
<div class="signup-form">
|
|
@using (Html.BeginForm("RestorePassword", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form", id = "frmRestorePassword" }))
|
|
{
|
|
@Html.HiddenFor(t => t.Token)
|
|
@Html.HiddenFor(t => t.Email)
|
|
@Html.HiddenFor(t => t.State)
|
|
@Html.AntiForgeryToken()
|
|
if (RestorePasswordModel.PageState.Initial.Equals(Model.State))
|
|
{
|
|
<div class="signup-text">
|
|
<span>Enter new password</span>
|
|
</div>
|
|
<div class="form-group w-icon">
|
|
@Html.PasswordFor(m => m.Password, new { @class = "form-control input-lg", @placeholder = "Password" })
|
|
<span class="fa fa-lock signup-form-icon"></span>
|
|
@Html.ValidationMessageFor(m => m.Password)
|
|
</div>
|
|
|
|
<div class="form-group w-icon">
|
|
@Html.PasswordFor(m => m.ConfirmPassword, new { @class = "form-control input-lg", @placeholder = "Password confirmation" })
|
|
<span class="fa fa-lock signup-form-icon"></span>
|
|
@Html.ValidationMessageFor(m => m.ConfirmPassword)
|
|
</div>
|
|
|
|
<div class="form-group" style="margin-bottom: 20px;">
|
|
<label class="checkbox-inline">
|
|
@Html.ActionLink("Back to login page", "Login", "Account")
|
|
</label>
|
|
</div>
|
|
@Html.ValidationSummary()
|
|
if (ViewData.ModelState.IsValid)
|
|
{<div class="alert alert-info" id="passwordHint">
|
|
<ul>
|
|
Password needs be a minimum of 6 characters including:
|
|
<li>
|
|
1 upper case letter
|
|
</li>
|
|
<li>
|
|
1 lower case letter
|
|
</li>
|
|
<li>
|
|
1 number
|
|
</li>
|
|
<li>
|
|
1 special character (e.g. - @(Html.Raw("!#$\"%&'()*+,-./:;<=>?@[\\]^_`{|}~")))
|
|
</li>
|
|
</ul>
|
|
</div>}
|
|
<div class="form-actions">
|
|
<input type="submit" value="Submit" class="signup-btn bg-primary" id="btnSubmit">
|
|
</div>
|
|
}
|
|
else if (RestorePasswordModel.PageState.Restored.Equals(Model.State))
|
|
{
|
|
<div class="signup-text">
|
|
<span>Password has been successfully changed.</span>
|
|
</div>
|
|
<div class="form-group" style="margin-bottom: 20px;">
|
|
<label class="checkbox-inline">
|
|
@Html.ActionLink("Back to login page", "Login", "Account")
|
|
</label>
|
|
</div>
|
|
}
|
|
else if (RestorePasswordModel.PageState.TokenExpired.Equals(Model.State))
|
|
{
|
|
<div class="signup-text">
|
|
<span>Restore Password link is expired.</span>
|
|
</div>
|
|
<div class="form-group" style="margin-bottom: 20px;">
|
|
<label class="checkbox-inline">
|
|
<a href="javascript:void(0);" onclick="resubmitRestorePwdLink()">Click here to request new link</a>
|
|
</label>
|
|
</div>
|
|
}
|
|
else if (RestorePasswordModel.PageState.TokenDoesNotExist.Equals(Model.State))
|
|
{
|
|
<div class="signup-text">
|
|
<span>Restore Password token does not exist.</span>
|
|
</div>
|
|
<div class="form-group" style="margin-bottom: 20px;">
|
|
<label class="checkbox-inline">
|
|
@Html.ActionLink("Request restore password link", "ForgotPassword", "Account")
|
|
</label>
|
|
</div>
|
|
}
|
|
else if (RestorePasswordModel.PageState.TokenIsEmpty.Equals(Model.State))
|
|
{
|
|
<div class="signup-text">
|
|
<span>Restore Password token is not provided.</span>
|
|
</div>
|
|
<div class="form-group" style="margin-bottom: 20px;">
|
|
<label class="checkbox-inline">
|
|
@Html.ActionLink("Request restore password link", "ForgotPassword", "Account")
|
|
</label>
|
|
</div>
|
|
}
|
|
else if (RestorePasswordModel.PageState.TokenResent.Equals(Model.State))
|
|
{
|
|
<div class="signup-text">
|
|
<span>An email was sent to @Model.Email address - use the link in the email to access the reset password form.</span>
|
|
</div>
|
|
<div class="form-group" style="margin-bottom: 20px;">
|
|
<label class="checkbox-inline">
|
|
@Html.ActionLink("Back to login page", "Login", "Account")
|
|
</label>
|
|
</div>
|
|
}
|
|
}
|
|
</div>
|
|
</div>
|
|
|
|
@Scripts.Render(String.Format("{0}/{1}", Constants.C_BUNDLE_SCRIPTS_BASE_PATH, "platform-pixeladmin"))
|
|
|
|
<script type="text/javascript">
|
|
function resubmitRestorePwdLink() {
|
|
$('#frmRestorePassword').submit();
|
|
}
|
|
</script>
|
|
</body>
|
|
</html> |