mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-04-29 18:59:21 +02:00
Token just appears if enabled in config.php (#285)
* Token just appears if enabled in config.php * Update login.php https://github.com/Znote/ZnoteAAC/pull/285#discussion_r105547836
This commit is contained in:
parent
5f049e75a6
commit
5453bb96d1
@ -10,21 +10,23 @@
|
|||||||
<li>
|
<li>
|
||||||
Password: <br>
|
Password: <br>
|
||||||
<input type="password" name="password">
|
<input type="password" name="password">
|
||||||
</li>
|
</li><?php if ($config['twoFactorAuthenticator'] == true) { ?>
|
||||||
<li>
|
<li>
|
||||||
Token: <br>
|
Token: <br>
|
||||||
<input type="password" name="authcode">
|
<input type="password" name="authcode">
|
||||||
</li>
|
</li><?php } ?>
|
||||||
<li>
|
<li>
|
||||||
<input type="submit" value="Log in">
|
<input type="submit" value="Log in">
|
||||||
</li>
|
</li>
|
||||||
<?php
|
<?php
|
||||||
/* Form file */
|
if ($config['use_token'] == true) {
|
||||||
Token::create();
|
/* Form file */
|
||||||
|
Token::create();
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
<center> <h3><a href="register.php">New account</a></h3>
|
<center> <h3><a href="register.php">New account</a></h3>
|
||||||
<font size="1">- <a href="recovery.php">Account Recovery</a></font></center>
|
<font size="1">- <a href="recovery.php">Account Recovery</a></font></center>
|
||||||
</ul>
|
</ul>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user