btcpayserver/BTCPayServer/Views/UIManage/ChangePassword.cshtml
2022-01-14 13:46:03 +09:00

36 lines
1.5 KiB
Plaintext

@model ChangePasswordViewModel
@{
ViewData.SetActivePage(ManageNavPages.ChangePassword, "Change your password");
}
<h2 class="mb-4">@ViewData["Title"]</h2>
<div class="row">
<div class="col-md-6">
@if (!ViewContext.ModelState.IsValid)
{
<div asp-validation-summary="All" class="text-danger"></div>
}
<form method="post">
<div class="form-group">
<label asp-for="OldPassword" class="form-label" data-required></label>
<input asp-for="OldPassword" class="form-control"/>
<span asp-validation-for="OldPassword" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="NewPassword" class="form-label" data-required></label>
<input asp-for="NewPassword" class="form-control"/>
<span asp-validation-for="NewPassword" class="text-danger"></span>
</div>
<div class="form-group mb-4">
<label asp-for="ConfirmPassword" class="form-label" data-required></label>
<input asp-for="ConfirmPassword" class="form-control"/>
<span asp-validation-for="ConfirmPassword" class="text-danger"></span>
</div>
<button type="submit" class="btn btn-primary" id="UpdatePassword">Update Password</button>
</form>
</div>
</div>
@section PageFootContent {
<partial name="_ValidationScriptsPartial" />
}