mirror of
https://github.com/slawkens/myaac.git
synced 2026-01-22 22:16:22 +01:00
Update enable.php
This commit is contained in:
@@ -26,8 +26,6 @@ if (ACTION == 'request') {
|
|||||||
|
|
||||||
$accountKey = $account_logged->getCustomField('key');
|
$accountKey = $account_logged->getCustomField('key');
|
||||||
if (!empty($key) && $key == $accountKey) {
|
if (!empty($key) && $key == $accountKey) {
|
||||||
$clock = new NativeClock();
|
|
||||||
|
|
||||||
$secret = getSession('2fa_secret');
|
$secret = getSession('2fa_secret');
|
||||||
if ($secret === null) {
|
if ($secret === null) {
|
||||||
$secret = generateRandom2faSecret();
|
$secret = generateRandom2faSecret();
|
||||||
|
|||||||
Reference in New Issue
Block a user