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!";