Fixed inability to log in with two factor authentication.

This commit is contained in:
flash 2023-01-07 04:46:49 +00:00
parent 37eea64a27
commit 047d225669
1 changed files with 1 additions and 1 deletions

View File

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