mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 14:22:40 +01:00
* Users list: Cleanups * Policies: Flip registration settings * Policies: Add RequireUserApproval setting * Add approval to user * Require approval on login and for API key * API handling * AccountController cleanups * Test fix * Apply suggestions from code review Co-authored-by: Nicolas Dorier <nicolas.dorier@gmail.com> * Add missing imports * Communicate login requirements to user on account creation * Add login requirements to basic auth handler * Cleanups and test fix * Encapsulate approval logic in user service and log approval changes * Send follow up "Account approved" email Closes #5656. * Add notification for admins * Fix creating a user via the admin view * Update list: Unify flags into status column, add approve action * Adjust "Resend email" wording * Incorporate feedback from code review * Remove duplicate test server policy reset --------- Co-authored-by: Nicolas Dorier <nicolas.dorier@gmail.com>
26 lines
983 B
Text
26 lines
983 B
Text
@model ForgotPasswordViewModel
|
|
@{
|
|
ViewData["Title"] = "Forgot your password?";
|
|
Layout = "_LayoutSignedOut";
|
|
}
|
|
|
|
<p>
|
|
We all forget passwords every now and then. Just provide email address tied to
|
|
your account and we'll start the process of helping you recover your account.
|
|
</p>
|
|
|
|
<form asp-action="ForgotPassword" method="post">
|
|
<div asp-validation-summary="All" class="@(ViewContext.ModelState.ErrorCount.Equals(1) ? "no-marker" : "")"></div>
|
|
<div class="form-group">
|
|
<label asp-for="Email" class="form-label"></label>
|
|
<input asp-for="Email" class="form-control" />
|
|
<span asp-validation-for="Email" class="text-danger"></span>
|
|
</div>
|
|
<div class="form-group mt-4">
|
|
<button type="submit" class="btn btn-primary btn-lg w-100">Submit</button>
|
|
</div>
|
|
</form>
|
|
|
|
<p class="text-center mt-2 mb-0">
|
|
<a id="Login" style="font-size:1.15rem" asp-action="Login" asp-route-returnurl="@ViewData["ReturnUrl"]">Log in</a>
|
|
</p>
|