2022-07-17 18:16:00 +00:00
|
|
|
<!--
|
2023-01-03 09:18:30 +00:00
|
|
|
Copyright (C) 2019-2023 Nicola Murino
|
2022-07-17 18:16:00 +00:00
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU Affero General Public License as published
|
|
|
|
by the Free Software Foundation, version 3.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU Affero General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Affero General Public License
|
2023-01-03 09:18:30 +00:00
|
|
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2022-07-17 18:16:00 +00:00
|
|
|
-->
|
2021-01-17 21:29:08 +00:00
|
|
|
{{template "base" .}}
|
|
|
|
|
|
|
|
{{define "title"}}{{.Title}}{{end}}
|
|
|
|
|
|
|
|
{{define "page_body"}}
|
|
|
|
|
2021-01-24 16:43:54 +00:00
|
|
|
<div class="card shadow mb-4">
|
|
|
|
<div class="card-header py-3">
|
|
|
|
<h6 class="m-0 font-weight-bold text-primary">Change password</h6>
|
2021-01-17 21:29:08 +00:00
|
|
|
</div>
|
2021-01-24 16:43:54 +00:00
|
|
|
<div class="card-body">
|
|
|
|
{{if .Error}}
|
|
|
|
<div class="card mb-4 border-left-warning">
|
|
|
|
<div class="card-body text-form-error">{{.Error}}</div>
|
2021-01-17 21:29:08 +00:00
|
|
|
</div>
|
2021-01-24 16:43:54 +00:00
|
|
|
{{end}}
|
2021-09-29 16:46:15 +00:00
|
|
|
<form id="user_form" action="{{.CurrentURL}}" method="POST" autocomplete="off">
|
2021-01-24 16:43:54 +00:00
|
|
|
<div class="form-group row">
|
|
|
|
<label for="idCurrentPassword" class="col-sm-2 col-form-label">Current password</label>
|
|
|
|
<div class="col-sm-10">
|
2022-11-03 18:57:43 +00:00
|
|
|
<input type="password" class="form-control" id="idCurrentPassword" name="current_password" autocomplete="new-password" required>
|
2021-01-24 16:43:54 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-01-17 21:29:08 +00:00
|
|
|
|
2021-01-24 16:43:54 +00:00
|
|
|
<div class="form-group row">
|
|
|
|
<label for="idNewPassword1" class="col-sm-2 col-form-label">New password</label>
|
|
|
|
<div class="col-sm-10">
|
2022-11-03 18:57:43 +00:00
|
|
|
<input type="password" class="form-control" id="idNewPassword1" name="new_password1" autocomplete="new-password" required>
|
2021-01-24 16:43:54 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group row">
|
|
|
|
<label for="idNewPassword2" class="col-sm-2 col-form-label">Confirm password</label>
|
|
|
|
<div class="col-sm-10">
|
2022-11-03 18:57:43 +00:00
|
|
|
<input type="password" class="form-control" id="idNewPassword2" name="new_password2" autocomplete="new-password" required>
|
2021-01-24 16:43:54 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-01-17 21:29:08 +00:00
|
|
|
|
2021-02-03 07:55:28 +00:00
|
|
|
<input type="hidden" name="_form_token" value="{{.CSRFToken}}">
|
2022-01-12 18:01:19 +00:00
|
|
|
<button type="submit" class="btn btn-primary float-right mt-3 px-5">Change my password</button>
|
2021-01-24 16:43:54 +00:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-01-17 21:29:08 +00:00
|
|
|
{{end}}
|