mirror of
https://github.com/drakkan/sftpgo.git
synced 2024-11-22 15:40:23 +00:00
04ab8e72f6
Fixes #1171 Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
52 lines
No EOL
2.9 KiB
HTML
52 lines
No EOL
2.9 KiB
HTML
<!--
|
|
Copyright (C) 2019-2023 Nicola Murino
|
|
|
|
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
|
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
-->
|
|
{{template "baselogin" .}}
|
|
|
|
{{define "title"}}Two-Factor authentication{{end}}
|
|
|
|
{{define "content"}}
|
|
<div class="text-center">
|
|
<h1 class="h4 text-gray-900 mb-4">{{.Branding.Name}} - {{.Version}}</h1>
|
|
</div>
|
|
{{if .Error}}
|
|
<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>
|
|
</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"
|
|
id="inputPasscode" name="passcode" placeholder="Authentication code" spellcheck="false" required>
|
|
</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>Open the two-factor authentication app on your device to view your authentication code and verify your identity.</p>
|
|
</div>
|
|
<hr>
|
|
<div>
|
|
<p><strong>Having problems?</strong></p>
|
|
<p><a href="{{.RecoveryURL}}">Enter a two-factor recovery code</a></p>
|
|
</div>
|
|
{{end}} |