Skip to content

Commit

Permalink
set KeepLogged flag properly when logging in without 2FA
Browse files Browse the repository at this point in the history
  • Loading branch information
itismadness committed Nov 4, 2020
1 parent b1a83ac commit ae9eb9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sections/login/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ function needResetIpaddr(int $permissionId, $custom = ''): bool {

$sessionMan = new Gazelle\Session($UserID);
$session = $sessionMan->create([
'keep-logged' => 0,
'keep-logged' => $KeepLogged ? '1' : '0',
'browser' => $Browser,
'os' => $OperatingSystem,
'ipaddr' => needResetIpaddr($PermissionID, $CustomPermissions) ? '127.0.0.1' : $_SERVER['REMOTE_ADDR'],
Expand Down

0 comments on commit ae9eb9c

Please sign in to comment.