mirror of
https://github.com/drakkan/sftpgo.git
synced 2024-11-22 23:50:32 +00:00
5d7f6960f3
Fixes #829 Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
29 lines
No EOL
1.7 KiB
HTML
29 lines
No EOL
1.7 KiB
HTML
{{template "baselogin" .}}
|
|
|
|
{{define "title"}}Two-Factor recovery{{end}}
|
|
|
|
{{define "content"}}
|
|
<div class="text-center">
|
|
<h1 class="h4 text-gray-900 mb-4">{{.Branding.Name}} - {{.Version}}</h1>
|
|
</div>
|
|
{{if .Error}}
|
|
<div class="card mb-4 border-left-warning">
|
|
<div class="card-body text-form-error">{{.Error}}</div>
|
|
</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="inputRecoveryCode" name="recovery_code" placeholder="Recovery code" 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>You can enter one of your recovery codes in case you lost access to your mobile device.</p>
|
|
</div>
|
|
{{end}} |