2017-01-16 05:14:29 +03:00
|
|
|
{{template "base/head" .}}
|
2023-02-02 01:56:10 +03:00
|
|
|
<div role="main" aria-label="{{.Title}}" class="page-content user settings twofa">
|
2017-03-16 01:39:38 +03:00
|
|
|
{{template "user/settings/navbar" .}}
|
2017-01-16 05:14:29 +03:00
|
|
|
<div class="ui container">
|
2017-03-16 01:39:38 +03:00
|
|
|
{{template "base/alert" .}}
|
|
|
|
<h4 class="ui top attached header">
|
2022-06-27 23:58:46 +03:00
|
|
|
{{.locale.Tr "settings.twofa_enroll"}}
|
2017-03-16 01:39:38 +03:00
|
|
|
</h4>
|
|
|
|
<div class="ui attached segment">
|
2022-06-27 23:58:46 +03:00
|
|
|
<p>{{.locale.Tr "settings.scan_this_image"}}</p>
|
2017-03-16 01:39:38 +03:00
|
|
|
<img src="{{.QrUri}}" alt="{{.TwofaSecret}}">
|
2022-06-27 23:58:46 +03:00
|
|
|
<p>{{.locale.Tr "settings.or_enter_secret" .TwofaSecret}}
|
|
|
|
<p>{{.locale.Tr "settings.then_enter_passcode"}}
|
2017-03-16 01:39:38 +03:00
|
|
|
<form class="ui form" action="{{.Link}}" method="post">
|
|
|
|
{{.CsrfTokenHtml}}
|
|
|
|
<div class="inline required field {{if .Err_Passcode}}error{{end}}">
|
2022-06-27 23:58:46 +03:00
|
|
|
<label for="passcode">{{.locale.Tr "passcode"}}</label>
|
2017-03-16 01:39:38 +03:00
|
|
|
<input id="passcode" name="passcode" autofocus required>
|
2017-01-16 05:14:29 +03:00
|
|
|
</div>
|
2017-03-16 01:39:38 +03:00
|
|
|
<div class="inline field">
|
|
|
|
<label></label>
|
2022-06-27 23:58:46 +03:00
|
|
|
<button class="ui green button">{{.locale.Tr "auth.verify"}}</button>
|
2017-03-16 01:39:38 +03:00
|
|
|
</div>
|
|
|
|
</form>
|
2017-01-16 05:14:29 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{template "base/footer" .}}
|