2020-09-05 12:16:48 +02:00
|
|
|
@model BTCPayServer.Models.AccountViewModels.SetPasswordViewModel
|
|
|
|
@{
|
|
|
|
ViewData["Title"] = "Reset password";
|
2022-01-21 03:10:03 +01:00
|
|
|
Layout = "_LayoutSignedOut";
|
2020-09-05 12:16:48 +02:00
|
|
|
}
|
|
|
|
|
2022-01-21 03:10:03 +01:00
|
|
|
<form method="post" asp-action="SetPassword">
|
|
|
|
<div asp-validation-summary="All" class="text-danger"></div>
|
|
|
|
<input asp-for="Code" type="hidden"/>
|
|
|
|
<input asp-for="EmailSetInternally" type="hidden"/>
|
|
|
|
@if (Model.EmailSetInternally)
|
|
|
|
{
|
|
|
|
<input asp-for="Email" type="hidden"/>
|
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="Email" class="form-label"></label>
|
|
|
|
<input type="text" disabled value="@Model.Email" class="form-control"/>
|
|
|
|
<span asp-validation-for="Email" class="text-danger"></span>
|
2020-09-05 12:16:48 +02:00
|
|
|
</div>
|
2022-01-21 03:10:03 +01:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="Email" class="form-label"></label>
|
|
|
|
<input asp-for="Email" value="@Model.Email" class="form-control"/>
|
|
|
|
<span asp-validation-for="Email" class="text-danger"></span>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="Password" class="form-label"></label>
|
|
|
|
<input asp-for="Password" class="form-control"/>
|
|
|
|
<span asp-validation-for="Password" class="text-danger"></span>
|
2020-09-05 12:16:48 +02:00
|
|
|
</div>
|
2022-01-21 03:10:03 +01:00
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="ConfirmPassword" class="form-label"></label>
|
|
|
|
<input asp-for="ConfirmPassword" class="form-control"/>
|
|
|
|
<span asp-validation-for="ConfirmPassword" class="text-danger"></span>
|
2020-09-05 12:16:48 +02:00
|
|
|
</div>
|
2022-01-21 03:10:03 +01:00
|
|
|
<button type="submit" class="btn btn-primary w-100 btn-lg" id="SetPassword">Set Password</button>
|
|
|
|
</form>
|