Verified Commit d2870a26 authored by Helmo's avatar Helmo
Browse files

Log when using 2fa

parent 700a31e0
......@@ -118,7 +118,7 @@ if($_SESSION['otp']['type'] == 'email') {
//* 2fa success
if(password_verify($_POST['code'], $_SESSION['otp']['code_hash'])) {
finish_2fa_success();
finish_2fa_success('with 2fa');
} else {
//* 2fa wrong code
$_SESSION['otp']['session_attempts']++;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment