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