From 7365a882add3691b7bbd06429a5d1c98756e2316 Mon Sep 17 00:00:00 2001 From: flashwave Date: Sat, 7 Jan 2023 04:46:49 +0000 Subject: [PATCH] Fixed inability to log in with two factor authentication. --- public/auth/twofactor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/auth/twofactor.php b/public/auth/twofactor.php index 31075fda..3198a665 100644 --- a/public/auth/twofactor.php +++ b/public/auth/twofactor.php @@ -75,7 +75,7 @@ while(!empty($twofactor)) { $tokenInfo->delete(); try { - $sessionInfo = UserSession::create($userInfo); + $sessionInfo = UserSession::create($userInfo, $ipAddress); $sessionInfo->setCurrent(); } catch(UserSessionCreationFailedException $ex) { $notices[] = "Something broke while creating a session for you, please tell an administrator or developer about this!";