mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-04-30 03:09:22 +02:00
commit
66264947ba
@ -72,7 +72,7 @@ if (empty($_POST) === false) {
|
|||||||
// Validate the secret first to make sure all is good.
|
// Validate the secret first to make sure all is good.
|
||||||
if (TokenAuth6238::verify($query['znote_secret'], $authcode)) {
|
if (TokenAuth6238::verify($query['znote_secret'], $authcode)) {
|
||||||
// Success, enable the 2FA system
|
// Success, enable the 2FA system
|
||||||
mysql_update("UPDATE `accounts` SET `secret`= '$authcode' WHERE `id`='$login';");
|
mysql_update("UPDATE `accounts` SET `secret`= '".$query['znote_secret']."' WHERE `id`='$login';");
|
||||||
} else {
|
} else {
|
||||||
$errors[] = "Activating Two-Factor authentication failed.";
|
$errors[] = "Activating Two-Factor authentication failed.";
|
||||||
$errors[] = "Try to login without token and configure your app properly.";
|
$errors[] = "Try to login without token and configure your app properly.";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user