fix password check when using remember me login

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2016-11-24 11:57:10 +01:00
parent f4cf125a4a
commit dd7d493e4d
No known key found for this signature in database
GPG Key ID: 425003AC385454C5
1 changed files with 3 additions and 4 deletions

View File

@ -127,10 +127,9 @@ class JSConfigHelper {
}
if ($this->currentUser instanceof IUser) {
$lastConfirmTimestamp = $this->currentUser->getLastLogin();
$sessionTime = $this->session->get('last-password-confirm');
if (is_int($sessionTime)) {
$lastConfirmTimestamp = $sessionTime;
$lastConfirmTimestamp = $this->session->get('last-password-confirm');
if (!is_int($lastConfirmTimestamp)) {
$lastConfirmTimestamp = 0;
}
} else {
$lastConfirmTimestamp = 0;