-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System.ComponentModel.DataAnnotations; | ||
|
||
namespace AuthSample.ViewModels.Account | ||
{ | ||
public class ResetPasswordViewModel | ||
{ | ||
[Required] | ||
[EmailAddress] | ||
[Display(Name = "Email")] | ||
public string Email { get; set; } | ||
|
||
[Required] | ||
[DataType(DataType.Password)] | ||
[Display(Name = "密碼")] | ||
public string Password { get; set; } | ||
[DataType(DataType.Password)] | ||
[Display(Name = "確認密碼")] | ||
[Compare(nameof(Password),ErrorMessage = "密碼不一置,請重新確認")] | ||
public string ConfirmPassword { get; set; } | ||
public string Token { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@* | ||
For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860 | ||
*@ | ||
@{ | ||
} | ||
@model ResetPasswordViewModel | ||
|
||
<h2>重置密碼</h2> | ||
<form method="post"> | ||
<input asp-for="Token" type="hidden" /> | ||
<input asp-for="Email" type="hidden" /> | ||
<div> | ||
<label asp-for="Password"></label> | ||
<input asp-for="Password" /> | ||
</div> | ||
<div> | ||
<label asp-for="ConfirmPassword"></label> | ||
<input asp-for="ConfirmPassword" /> | ||
</div> | ||
<div> | ||
<button>重置</button> | ||
</div> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@* | ||
For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860 | ||
*@ | ||
@{ | ||
} | ||
<h1>重置密碼通知</h1> | ||
<h4>重置密碼成功,請<a asp-action="Login">登入</a></h4> |