mirror of
https://github.com/itflow-org/itflow
synced 2026-08-06 23:57:16 +00:00
Replace Function key32gen() with generateTotpSecret()
This commit is contained in:
@@ -3,7 +3,7 @@ require_once '../../libs/totp/totp.php';
|
||||
|
||||
// Only generate the token once and store it in session:
|
||||
if (empty($_SESSION['mfa_token'])) {
|
||||
$token = key32gen();
|
||||
$token = generateTotpSecret();
|
||||
$_SESSION['mfa_token'] = $token;
|
||||
}
|
||||
$token = $_SESSION['mfa_token'];
|
||||
|
||||
Reference in New Issue
Block a user