mirror of https://github.com/abpframework/abp.git
committed by
GitHub
10 changed files with 153 additions and 39 deletions
@ -0,0 +1,12 @@ |
|||||
|
using System; |
||||
|
using System.ComponentModel.DataAnnotations; |
||||
|
|
||||
|
namespace Volo.Abp.Account; |
||||
|
|
||||
|
public class VerifyPasswordResetTokenInput |
||||
|
{ |
||||
|
public Guid UserId { get; set; } |
||||
|
|
||||
|
[Required] |
||||
|
public string ResetToken { get; set; } |
||||
|
} |
||||
@ -1,20 +1,31 @@ |
|||||
@page |
@page |
||||
@inject IHtmlLocalizer<AccountResource> L |
@inject IHtmlLocalizer<AccountResource> L |
||||
|
@inject IHtmlLocalizer<IdentityResource> LI |
||||
@using Microsoft.AspNetCore.Mvc.Localization |
@using Microsoft.AspNetCore.Mvc.Localization |
||||
@using Volo.Abp.Account.Localization |
@using Volo.Abp.Account.Localization |
||||
|
@using Volo.Abp.Identity.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"> |
<div class="card mt-3 shadow-sm rounded"> |
||||
<div class="card-body p-5"> |
<div class="card-body p-5"> |
||||
<h4>@L["ResetPassword"]</h4> |
<h4>@L["ResetPassword"]</h4> |
||||
<form method="post"> |
@if (Model.InvalidToken) |
||||
<p>@L["ResetPassword_Information"]</p> |
{ |
||||
<abp-input asp-for="UserId"/> |
<div class="alert alert-danger"> |
||||
<abp-input asp-for="ResetToken"/> |
@LI["Volo.Abp.Identity:InvalidToken"] |
||||
<abp-input asp-for="Password" autocomplete="new-password" /> |
</div> |
||||
<abp-input asp-for="ConfirmPassword" autocomplete="new-password" /> |
} |
||||
<a abp-button="Secondary" asp-page="./Login">@L["Cancel"]</a> |
else |
||||
<abp-button type="submit" button-type="Primary" text="@L["Submit"].Value"/> |
{ |
||||
</form> |
<form method="post"> |
||||
|
<p>@L["ResetPassword_Information"]</p> |
||||
|
<abp-input asp-for="UserId"/> |
||||
|
<abp-input asp-for="ResetToken"/> |
||||
|
<abp-input asp-for="Password" autocomplete="new-password" /> |
||||
|
<abp-input asp-for="ConfirmPassword" autocomplete="new-password" /> |
||||
|
<a abp-button="Secondary" asp-page="./Login">@L["Cancel"]</a> |
||||
|
<abp-button type="submit" button-type="Primary" text="@L["Submit"].Value"/> |
||||
|
</form> |
||||
|
} |
||||
</div> |
</div> |
||||
</div> |
</div> |
||||
|
|||||
Loading…
Reference in new issue