A lot of code cleanup and code sanitation done.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
session_start();
|
||||
|
||||
require $_SERVER['DOCUMENT_ROOT'] . '/../vendor/autoload.php';
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/login/php/authFunctions.php';
|
||||
require_once "{$_SERVER['DOCUMENT_ROOT']}/../vendor/autoload.php";
|
||||
require_once "{$_SERVER['DOCUMENT_ROOT']}/login/php/authFunctions.php";
|
||||
|
||||
|
||||
use RobThree\Auth\TwoFactorAuth;
|
||||
@@ -82,12 +82,24 @@ $_SESSION['mfasetup']['secret'] = $secret;
|
||||
<small>Enter the code from your authentication app:</small><br>
|
||||
<div class="input-group mb-3">
|
||||
<div id="code-container">
|
||||
<input name="verification-1" type="text" maxlength="1" class="code-input" autocomplete="off" autofocus>
|
||||
<input name="verification-2" type="text" maxlength="1" class="code-input" autocomplete="off">
|
||||
<input name="verification-3" type="text" maxlength="1" class="code-input" autocomplete="off">
|
||||
<input name="verification-4" type="text" maxlength="1" class="code-input" autocomplete="off">
|
||||
<input name="verification-5" type="text" maxlength="1" class="code-input" autocomplete="off">
|
||||
<input name="verification-6" type="text" maxlength="1" class="code-input" autocomplete="off">
|
||||
<label>
|
||||
<input name="verification-1" type="text" maxlength="1" class="code-input" autocomplete="off" autofocus>
|
||||
</label>
|
||||
<label>
|
||||
<input name="verification-2" type="text" maxlength="1" class="code-input" autocomplete="off">
|
||||
</label>
|
||||
<label>
|
||||
<input name="verification-3" type="text" maxlength="1" class="code-input" autocomplete="off">
|
||||
</label>
|
||||
<label>
|
||||
<input name="verification-4" type="text" maxlength="1" class="code-input" autocomplete="off">
|
||||
</label>
|
||||
<label>
|
||||
<input name="verification-5" type="text" maxlength="1" class="code-input" autocomplete="off">
|
||||
</label>
|
||||
<label>
|
||||
<input name="verification-6" type="text" maxlength="1" class="code-input" autocomplete="off">
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<button class="btn btn-primary px-4" type="submit">
|
||||
|
||||
Reference in New Issue
Block a user