mirror of
https://github.com/slawkens/myaac.git
synced 2026-01-20 05:06:23 +01:00
[WIP] Working app auth (Still not ready)
Missing rec key validation Doesn't work with google recaptcha plugin
This commit is contained in:
69
system/templates/account/2fa/app/enable.html.twig
Normal file
69
system/templates/account/2fa/app/enable.html.twig
Normal file
@@ -0,0 +1,69 @@
|
||||
|
||||
<table style="width:100%;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<div class="TableContentContainer ">
|
||||
<table class="TableContent" width="100%" style="border:1px solid #faf0d7;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<ol>
|
||||
<li>Open an authenticator app of your choice (e.g. <a
|
||||
target="_blank"
|
||||
href="https://support.google.com/accounts/answer/1066447"
|
||||
rel="noopener noreferrer">Google Authenticator</a>, <a
|
||||
target="_blank" href="https://www.authy.com/users"
|
||||
rel="noopener noreferrer">Authy</a>). In the app you
|
||||
will be asked either to enter a key manually:<br><b>{{ secret }}</b><br>or
|
||||
to scan the barcode below:<br>
|
||||
<img alt="QR code" style="margin-top: 15px; margin-bottom: 15px;"
|
||||
src="{{ grCodeUri }}">
|
||||
</li>
|
||||
<li><label for="totp">Enter the verification code you have received from the used
|
||||
authenticator app:</label><br>
|
||||
<div style="margin-top: 15px; margin-bottom: 15px;">
|
||||
<input form="form" id="totp" name="totp" autocomplete="off"></div>
|
||||
</li>
|
||||
<li>Click on "Continue" to connect the authenticator app to your
|
||||
Tibia account.
|
||||
</li>
|
||||
</ol>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
<table style="width: 100%;">
|
||||
<tbody>
|
||||
<tr align="center" valign="top">
|
||||
<td>
|
||||
<form id="form" method="post" action="{{ getLink('account/2fa/app/enable') }}">
|
||||
|
||||
<input type="hidden" name="action" value="link">
|
||||
|
||||
{{ csrf() }}
|
||||
|
||||
{% set button_color = 'green' %}
|
||||
{% set button_name = 'Continue' %}
|
||||
{{ include('buttons.base.html.twig') }}
|
||||
</td>
|
||||
<td>
|
||||
<form action="{{ getLink('account/manage') }}" method="post" style="padding:0;margin:0;">
|
||||
|
||||
{{ csrf() }}
|
||||
|
||||
{% set button_color = 'blue' %}
|
||||
{% set button_name = 'Request' %}
|
||||
{{ include('buttons.base.html.twig') }}
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
Reference in New Issue
Block a user