Skip to content

Commit

Permalink
do not overwrite needed userinfo to avoid successful login when using…
Browse files Browse the repository at this point in the history
… email 2fa

Signed-off-by: Michael Kaufmann <[email protected]>
  • Loading branch information
d00p committed Aug 30, 2024
1 parent 4ea7e10 commit 05ca08c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
// when using email-2fa, remove the one-time-code
if ($userinfo['type_2fa'] == '1') {
$del_stmt = Database::prepare("UPDATE " . $table . " SET `data_2fa` = '' WHERE `" . $field . "` = :uid");
$userinfo = Database::pexecute_first($del_stmt, [
Database::pexecute_first($del_stmt, [
'uid' => $uid
]);
}
Expand Down

0 comments on commit 05ca08c

Please sign in to comment.