2017-09-13 15:47:34 +09:00
|
|
|
@model ChangePasswordViewModel
|
|
|
|
@{
|
2021-12-16 11:17:02 +01:00
|
|
|
ViewData.SetActivePage(ManageNavPages.ChangePassword, "Change your password");
|
2017-09-13 15:47:34 +09:00
|
|
|
}
|
2022-01-17 17:19:27 -08:00
|
|
|
<h3 class="mb-4">@ViewData["Title"]</h3>
|
2017-09-13 15:47:34 +09:00
|
|
|
<div class="row">
|
2022-01-27 03:56:46 +01:00
|
|
|
<div class="col-xl-8 col-xxl-constrain">
|
2021-04-08 15:32:42 +02:00
|
|
|
@if (!ViewContext.ModelState.IsValid)
|
|
|
|
{
|
|
|
|
<div asp-validation-summary="All" class="text-danger"></div>
|
|
|
|
}
|
2017-09-13 15:47:34 +09:00
|
|
|
<form method="post">
|
|
|
|
<div class="form-group">
|
2021-11-12 21:37:04 -08:00
|
|
|
<label asp-for="OldPassword" class="form-label" data-required></label>
|
2021-04-08 15:32:42 +02:00
|
|
|
<input asp-for="OldPassword" class="form-control"/>
|
2017-09-13 15:47:34 +09:00
|
|
|
<span asp-validation-for="OldPassword" class="text-danger"></span>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
2021-11-12 21:37:04 -08:00
|
|
|
<label asp-for="NewPassword" class="form-label" data-required></label>
|
2021-04-08 15:32:42 +02:00
|
|
|
<input asp-for="NewPassword" class="form-control"/>
|
2017-09-13 15:47:34 +09:00
|
|
|
<span asp-validation-for="NewPassword" class="text-danger"></span>
|
|
|
|
</div>
|
2022-01-17 17:19:27 -08:00
|
|
|
<div class="form-group">
|
2021-11-12 21:37:04 -08:00
|
|
|
<label asp-for="ConfirmPassword" class="form-label" data-required></label>
|
2021-04-08 15:32:42 +02:00
|
|
|
<input asp-for="ConfirmPassword" class="form-control"/>
|
2017-09-13 15:47:34 +09:00
|
|
|
<span asp-validation-for="ConfirmPassword" class="text-danger"></span>
|
|
|
|
</div>
|
2022-01-17 17:19:27 -08:00
|
|
|
<button type="submit" class="btn btn-primary mt-2" id="UpdatePassword">Update Password</button>
|
2017-09-13 15:47:34 +09:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2021-05-19 04:39:27 +02:00
|
|
|
@section PageFootContent {
|
2021-04-08 15:32:42 +02:00
|
|
|
<partial name="_ValidationScriptsPartial" />
|
2017-09-13 15:47:34 +09:00
|
|
|
}
|