2023-04-23 04:21:21 -06:00
|
|
|
{{template "user/settings/layout_head" (dict "ctxData" . "pageClass" "user settings twofa")}}
|
|
|
|
<div class="user-setting-content">
|
2017-03-15 16:39:38 -06:00
|
|
|
<h4 class="ui top attached header">
|
2023-09-25 02:56:50 -06:00
|
|
|
{{ctx.Locale.Tr "settings.twofa_enroll"}}
|
2017-03-15 16:39:38 -06:00
|
|
|
</h4>
|
|
|
|
<div class="ui attached segment">
|
2023-09-25 02:56:50 -06:00
|
|
|
<p>{{ctx.Locale.Tr "settings.scan_this_image"}}</p>
|
2017-03-15 16:39:38 -06:00
|
|
|
<img src="{{.QrUri}}" alt="{{.TwofaSecret}}">
|
2023-09-25 02:56:50 -06:00
|
|
|
<p>{{ctx.Locale.Tr "settings.or_enter_secret" .TwofaSecret}}</p>
|
|
|
|
<p>{{ctx.Locale.Tr "settings.then_enter_passcode"}}</p>
|
2017-03-15 16:39:38 -06:00
|
|
|
<form class="ui form" action="{{.Link}}" method="post">
|
|
|
|
{{.CsrfTokenHtml}}
|
|
|
|
<div class="inline required field {{if .Err_Passcode}}error{{end}}">
|
2023-09-25 02:56:50 -06:00
|
|
|
<label for="passcode">{{ctx.Locale.Tr "passcode"}}</label>
|
2017-03-15 16:39:38 -06:00
|
|
|
<input id="passcode" name="passcode" autofocus required>
|
2017-01-15 19:14:29 -07:00
|
|
|
</div>
|
2017-03-15 16:39:38 -06:00
|
|
|
<div class="inline field">
|
|
|
|
<label></label>
|
2023-09-25 02:56:50 -06:00
|
|
|
<button class="ui primary button">{{ctx.Locale.Tr "auth.verify"}}</button>
|
2017-03-15 16:39:38 -06:00
|
|
|
</div>
|
|
|
|
</form>
|
2017-01-15 19:14:29 -07:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2023-04-23 04:21:21 -06:00
|
|
|
{{template "user/settings/layout_footer" .}}
|