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-09-04 10:11:04 +00:00
|
|
|
{{template "baselogin" .}}
|
|
|
|
|
|
|
|
{{define "title"}}Two-Factor recovery{{end}}
|
|
|
|
|
|
|
|
{{define "content"}}
|
|
|
|
{{if .Error}}
|
2023-02-10 17:07:23 +00:00
|
|
|
<div class="alert alert-warning alert-dismissible fade show" role="alert">
|
|
|
|
{{.Error}}
|
|
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
</button>
|
2021-09-04 10:11:04 +00:00
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
<form id="login_form" action="{{.CurrentURL}}" method="POST" autocomplete="off"
|
|
|
|
class="user-custom">
|
|
|
|
<div class="form-group">
|
|
|
|
<input type="text" class="form-control form-control-user-custom"
|
2023-01-15 19:20:39 +00:00
|
|
|
id="inputRecoveryCode" name="recovery_code" placeholder="Recovery code" spellcheck="false" required>
|
2021-09-04 10:11:04 +00:00
|
|
|
</div>
|
|
|
|
<input type="hidden" name="_form_token" value="{{.CSRFToken}}">
|
|
|
|
<button type="submit" class="btn btn-primary btn-user-custom btn-block">
|
|
|
|
Verify
|
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
<hr>
|
|
|
|
<div>
|
|
|
|
<p>You can enter one of your recovery codes in case you lost access to your mobile device.</p>
|
|
|
|
</div>
|
|
|
|
{{end}}
|