From 047d225669f400dc05babbcd6565578dcbef504e 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 31075fd..3198a66 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!";