feat: forgot password/reset password
This commit is contained in:
parent
26b32b40e2
commit
9d33093339
17 changed files with 374 additions and 25 deletions
8
Foxnouns.Backend/Views/Mail/PasswordChanged.cshtml
Normal file
8
Foxnouns.Backend/Views/Mail/PasswordChanged.cshtml
Normal file
|
@ -0,0 +1,8 @@
|
|||
@model Foxnouns.Backend.Mailables.PasswordChangedMailableView
|
||||
|
||||
<p>
|
||||
Your password has been changed using a "forgot password" link.
|
||||
If this wasn't you, please a password reset immediately:
|
||||
<br />
|
||||
<a href="@Model.BaseUrl/auth/forgot-password">@Model.BaseUrl/auth/forgot-password</a>
|
||||
</p>
|
14
Foxnouns.Backend/Views/Mail/ResetPassword.cshtml
Normal file
14
Foxnouns.Backend/Views/Mail/ResetPassword.cshtml
Normal file
|
@ -0,0 +1,14 @@
|
|||
@model Foxnouns.Backend.Mailables.ResetPasswordMailableView
|
||||
|
||||
<p>
|
||||
Somebody (hopefully you!) has requested a password reset.
|
||||
You can use the following link to do this:
|
||||
<br />
|
||||
<a href="@Model.BaseUrl/auth/forgot-password/@Model.Code">@Model.BaseUrl/auth/forgot-password/@Model.Code</a>
|
||||
<br />
|
||||
Note that this link will expire in one hour.
|
||||
</p>
|
||||
<p>
|
||||
If you weren't expecting this email, you don't have to do anything.
|
||||
Your password can't be changed without the above link.
|
||||
</p>
|
Loading…
Add table
Add a link
Reference in a new issue