Browse Source

fix password check when using remember me login

Signed-off-by: Robin Appelman <robin@icewind.nl>
tags/v11.0RC2
Robin Appelman 7 years ago
parent
commit
dd7d493e4d
No account linked to committer's email address
1 changed files with 3 additions and 4 deletions
  1. 3
    4
      lib/private/Template/JSConfigHelper.php

+ 3
- 4
lib/private/Template/JSConfigHelper.php 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;

Loading…
Cancel
Save