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>
|
||||
Password: <br>
|
||||
<input type="password" name="password">
|
||||
</li>
|
||||
</li><?php if ($config['twoFactorAuthenticator'] == true) { ?>
|
||||
<li>
|
||||
Token: <br>
|
||||
<input type="password" name="authcode">
|
||||
</li>
|
||||
</li><?php } ?>
|
||||
<li>
|
||||
<input type="submit" value="Log in">
|
||||
</li>
|
||||
<?php
|
||||
/* Form file */
|
||||
Token::create();
|
||||
if ($config['use_token'] == true) {
|
||||
/* Form file */
|
||||
Token::create();
|
||||
}
|
||||
?>
|
||||
<center> <h3><a href="register.php">New account</a></h3>
|
||||
<font size="1">- <a href="recovery.php">Account Recovery</a></font></center>
|
||||
</ul>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user