Fixed inability to log in with two factor authentication.
This commit is contained in:
parent
37eea64a27
commit
047d225669
1 changed files with 1 additions and 1 deletions
|
@ -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!";
|
||||
|
|
Loading…
Reference in a new issue