Skip to content

Commit

Permalink
Update Login.php
Browse files Browse the repository at this point in the history
Fix eval of rememberme prop
  • Loading branch information
smg6511 committed Jan 22, 2025
1 parent 83a705a commit 78421e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/Revolution/Processors/Security/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function initialize()
return $this->modx->lexicon('login_cannot_locate_account');
}

$this->rememberme = ($this->getProperty('rememberme', false) === true);
$this->rememberme = (bool)$this->getProperty('rememberme', false) === true;
$this->lifetime = (int)$this->getProperty(
'lifetime',
$this->modx->getOption('session_cookie_lifetime', null, 0)
Expand Down

0 comments on commit 78421e2

Please sign in to comment.