2021-12-02 18:31:32 +03:00
|
|
|
{extends "../@layout.xml"}
|
2022-08-09 09:37:08 +03:00
|
|
|
{block title}{_my_settings} - {_two_factor_authentication}{/block}
|
2021-12-02 18:31:32 +03:00
|
|
|
|
|
|
|
{block header}
|
2022-08-09 09:37:08 +03:00
|
|
|
<a href="/settings">{_my_settings}</a> » {_two_factor_authentication}
|
2021-12-02 18:31:32 +03:00
|
|
|
{/block}
|
|
|
|
|
|
|
|
{block content}
|
2022-08-09 09:37:08 +03:00
|
|
|
{_two_factor_authentication_settings_1|noescape}
|
|
|
|
<p>{_two_factor_authentication_settings_2}</p>
|
2021-12-02 18:31:32 +03:00
|
|
|
<div style="text-align: center;">
|
2022-01-06 01:31:21 +03:00
|
|
|
<img width="225" height="225" src="data:{$qrCodeType};base64,{$qrCodeData}">
|
2021-12-02 18:31:32 +03:00
|
|
|
</div>
|
|
|
|
<p>{tr("two_factor_authentication_settings_3", $secret)|noescape}</p>
|
2022-08-09 09:37:08 +03:00
|
|
|
<p>{_two_factor_authentication_settings_4}</p>
|
2021-12-02 18:31:32 +03:00
|
|
|
<form method="POST">
|
|
|
|
<table cellspacing="7" cellpadding="0" width="40%" border="0" align="center">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<span>{_code}: </span>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<input type="text" name="code" required />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<span>{_password}: </span>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<input type="password" name="password" required />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<input type="hidden" name="secret" value="{$secret}" />
|
|
|
|
<input type="hidden" name="hash" value="{$csrfToken}" />
|
|
|
|
<input type="submit" value="{_enable}" class="button" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
{/block}
|