Browse Source

Fix forgot password UI.

pull/5136/head
Halil İbrahim Kalkan 6 years ago
parent
commit
193e770c83
  1. 2
      modules/account/src/Volo.Abp.Account.Web.IdentityServer/Pages/Account/IdentityServerSupportedLoginModel.cs
  2. 28
      modules/account/src/Volo.Abp.Account.Web/Pages/Account/ForgotPassword.cshtml
  3. 14
      modules/account/src/Volo.Abp.Account.Web/Pages/Account/PasswordResetLinkSent.cshtml
  4. 32
      modules/account/src/Volo.Abp.Account.Web/Pages/Account/ResetPassword.cshtml
  5. 12
      modules/account/src/Volo.Abp.Account.Web/Pages/Account/ResetPasswordConfirmation.cshtml

2
modules/account/src/Volo.Abp.Account.Web.IdentityServer/Pages/Account/IdentityServerSupportedLoginModel.cs

@ -17,9 +17,7 @@ using Volo.Abp.DependencyInjection;
using Volo.Abp.Identity; using Volo.Abp.Identity;
using Volo.Abp.Identity.AspNetCore; using Volo.Abp.Identity.AspNetCore;
using Volo.Abp.MultiTenancy; using Volo.Abp.MultiTenancy;
using Volo.Abp.SecurityLog;
using Volo.Abp.Settings; using Volo.Abp.Settings;
using Volo.Abp.Uow;
namespace Volo.Abp.Account.Web.Pages.Account namespace Volo.Abp.Account.Web.Pages.Account
{ {

28
modules/account/src/Volo.Abp.Account.Web/Pages/Account/ForgotPassword.cshtml

@ -4,18 +4,18 @@
@using Volo.Abp.Account.Localization @using Volo.Abp.Account.Localization
@model Volo.Abp.Account.Web.Pages.Account.ForgotPasswordModel @model Volo.Abp.Account.Web.Pages.Account.ForgotPasswordModel
@inject Volo.Abp.AspNetCore.Mvc.UI.Layout.IPageLayout PageLayout @inject Volo.Abp.AspNetCore.Mvc.UI.Layout.IPageLayout PageLayout
@{ <div class="card mt-3 shadow-sm rounded">
PageLayout.Content.Title = L["ForgotPassword"].Value; <div class="card-body p-5">
} <h4>@L["ForgotPassword"]</h4>
<div class="account-module-form"> <form method="post" class="mt-4">
<form method="post"> <p>@L["SendPasswordResetLink_Information"]</p>
<p>@L["SendPasswordResetLink_Information"]</p> <input asp-for="ReturnUrl"/>
<input asp-for="ReturnUrl"/> <input asp-for="ReturnUrlHash"/>
<input asp-for="ReturnUrlHash"/> <abp-input asp-for="Email"/>
<abp-input asp-for="Email"/> <abp-button button-type="Primary" size="Block" type="submit" class="mt-2 mb-3">@L["Submit"]</abp-button>
<abp-button button-type="Primary" size="Block" type="submit" class="mt-2 mb-3">@L["Submit"]</abp-button> <a asp-page="./Login" asp-all-route-data="@(new Dictionary<string, string> {{"returnUrl", Model.ReturnUrl}, {"returnUrlHash", Model.ReturnUrlHash}})">
<a asp-page="./Login" asp-all-route-data="@(new Dictionary<string, string>{ {"returnUrl",Model.ReturnUrl}, {"returnUrlHash",Model.ReturnUrlHash} })"> <i class="fa fa-long-arrow-left"></i> @L["Login"]
<i class="fa fa-long-arrow-left"></i> @L["Login"] </a>
</a> </form>
</form> </div>
</div> </div>

14
modules/account/src/Volo.Abp.Account.Web/Pages/Account/PasswordResetLinkSent.cshtml

@ -4,10 +4,12 @@
@using Microsoft.AspNetCore.Mvc.Localization @using Microsoft.AspNetCore.Mvc.Localization
@using Volo.Abp.Account.Localization @using Volo.Abp.Account.Localization
@inject IHtmlLocalizer<AccountResource> L @inject IHtmlLocalizer<AccountResource> L
@{ <div class="card mt-3 shadow-sm rounded">
PageLayout.Content.Title = L["ForgotPassword"].Value; <div class="card-body p-5">
} <h4>@L["ForgotPassword"]</h4>
<p>@L["PasswordResetMailSentMessage"]</p> <form method="post" class="mt-4">
<div class="mt-4"> <p>@L["PasswordResetMailSentMessage"]</p>
<a abp-button="Primary" asp-page="./Login" asp-all-route-data="@(new Dictionary<string, string>{ {"returnUrl",Model.ReturnUrl}, {"returnUrlHash",Model.ReturnUrlHash} })">&larr; @L["BackToLogin"]</a> <a abp-button="Primary" asp-page="./Login" asp-all-route-data="@(new Dictionary<string, string> {{"returnUrl", Model.ReturnUrl}, {"returnUrlHash", Model.ReturnUrlHash}})">&larr; @L["BackToLogin"]</a>
</form>
</div>
</div> </div>

32
modules/account/src/Volo.Abp.Account.Web/Pages/Account/ResetPassword.cshtml

@ -4,19 +4,19 @@
@using Volo.Abp.Account.Localization @using Volo.Abp.Account.Localization
@model Volo.Abp.Account.Web.Pages.Account.ResetPasswordModel @model Volo.Abp.Account.Web.Pages.Account.ResetPasswordModel
@inject Volo.Abp.AspNetCore.Mvc.UI.Layout.IPageLayout PageLayout @inject Volo.Abp.AspNetCore.Mvc.UI.Layout.IPageLayout PageLayout
@{ <div class="card mt-3 shadow-sm rounded">
PageLayout.Content.Title = L["ResetPassword"].Value; <div class="card-body p-5">
} <h4>@L["ResetPassword"]</h4>
<form method="post"> <form method="post">
<p>@L["ResetPassword_Information"]</p> <p>@L["ResetPassword_Information"]</p>
<abp-input asp-for="ReturnUrl"/>
<abp-input asp-for="ReturnUrl" /> <abp-input asp-for="ReturnUrlHash"/>
<abp-input asp-for="ReturnUrlHash" /> <abp-input asp-for="UserId"/>
<abp-input asp-for="UserId" /> <abp-input asp-for="ResetToken"/>
<abp-input asp-for="ResetToken" /> <abp-input asp-for="Password"/>
<abp-input asp-for="Password" /> <abp-input asp-for="ConfirmPassword"/>
<abp-input asp-for="ConfirmPassword" /> <a abp-button="Secondary" asp-page="./Login">@L["Cancel"]</a>
<abp-button type="submit" button-type="Primary" text="@L["Submit"].Value"/>
<a abp-button="Secondary" asp-page="./Login">@L["Cancel"]</a> </form>
<abp-button type="submit" button-type="Primary" text="@L["Submit"].Value" /> </div>
</form> </div>

12
modules/account/src/Volo.Abp.Account.Web/Pages/Account/ResetPasswordConfirmation.cshtml

@ -4,8 +4,10 @@
@using Microsoft.AspNetCore.Mvc.Localization @using Microsoft.AspNetCore.Mvc.Localization
@using Volo.Abp.Account.Localization @using Volo.Abp.Account.Localization
@inject IHtmlLocalizer<AccountResource> L @inject IHtmlLocalizer<AccountResource> L
@{ <div class="card mt-3 shadow-sm rounded">
PageLayout.Content.Title = L["ResetPassword"].Value; <div class="card-body p-5">
} <h4>@L["ResetPassword"]</h4>
<p>@L["YourPasswordIsSuccessfullyReset"]</p> <p>@L["YourPasswordIsSuccessfullyReset"]</p>
<a abp-button="Primary" href="@Url.Content(Model.ReturnUrl)">@L["GoToTheApplication"]</a> <a abp-button="Primary" href="@Url.Content(Model.ReturnUrl)">@L["GoToTheApplication"]</a>
</div>
</div>

Loading…
Cancel
Save