This commit is contained in:
@@ -135,6 +135,11 @@ else if ($_SESSION["needs_auth"]===false && $_SESSION["mfa_authenticated"]==1 &&
|
||||
curl_close($ch);
|
||||
|
||||
}
|
||||
|
||||
//log activity
|
||||
if($_SESSION["logged_in"]!==true){
|
||||
log_activity($conn, $user_id, 'login', 'Login to ' . ($send_to ?: '/account/'));
|
||||
}
|
||||
|
||||
$_SESSION["logged_in"]=true;
|
||||
echo(json_encode($data));
|
||||
|
||||
Reference in New Issue
Block a user