2017-09-13 08:47:34 +02:00
|
|
|
@model ChangePasswordViewModel
|
|
|
|
@{
|
2018-04-19 22:57:23 +02:00
|
|
|
ViewData.SetActivePageAndTitle(ManageNavPages.ChangePassword, "Change password");
|
2017-09-13 08:47:34 +02:00
|
|
|
}
|
|
|
|
|
2019-10-31 04:29:59 +01:00
|
|
|
<partial name="_StatusMessage" />
|
2020-07-08 19:20:11 +02:00
|
|
|
|
|
|
|
@if (!this.ViewContext.ModelState.IsValid)
|
|
|
|
{
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<div asp-validation-summary="All" class="text-danger"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
|
2017-09-13 08:47:34 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<form method="post">
|
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="OldPassword"></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"></label>
|
|
|
|
<input asp-for="NewPassword" class="form-control" />
|
|
|
|
<span asp-validation-for="NewPassword" class="text-danger"></span>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="ConfirmPassword"></label>
|
|
|
|
<input asp-for="ConfirmPassword" class="form-control" />
|
|
|
|
<span asp-validation-for="ConfirmPassword" class="text-danger"></span>
|
|
|
|
</div>
|
2019-05-12 10:13:26 +02:00
|
|
|
<button type="submit" class="btn btn-primary" id="UpdatePassword">Update password</button>
|
2017-09-13 08:47:34 +02:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@section Scripts {
|
|
|
|
@await Html.PartialAsync("_ValidationScriptsPartial")
|
|
|
|
}
|