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 |
|||
@inject IHtmlLocalizer<AccountResource> L |
|||
@inject IHtmlLocalizer<IdentityResource> LI |
|||
@using Microsoft.AspNetCore.Mvc.Localization |
|||
@using Volo.Abp.Account.Localization |
|||
@using Volo.Abp.Identity.Localization |
|||
@model Volo.Abp.Account.Web.Pages.Account.ResetPasswordModel |
|||
@inject Volo.Abp.AspNetCore.Mvc.UI.Layout.IPageLayout PageLayout |
|||
<div class="card mt-3 shadow-sm rounded"> |
|||
<div class="card-body p-5"> |
|||
<h4>@L["ResetPassword"]</h4> |
|||
<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> |
|||
@if (Model.InvalidToken) |
|||
{ |
|||
<div class="alert alert-danger"> |
|||
@LI["Volo.Abp.Identity:InvalidToken"] |
|||
</div> |
|||
} |
|||
else |
|||
{ |
|||
<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> |
|||
|
|||
Loading…
Reference in new issue