From: Robin Appelman Date: Thu, 24 Nov 2016 10:57:10 +0000 (+0100) Subject: fix password check when using remember me login X-Git-Tag: v11.0RC2~140^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F2301%2Fhead;p=nextcloud-server.git fix password check when using remember me login Signed-off-by: Robin Appelman --- diff --git a/lib/private/Template/JSConfigHelper.php b/lib/private/Template/JSConfigHelper.php index a724c124de0..f17c6a16194 100644 --- a/lib/private/Template/JSConfigHelper.php +++ b/lib/private/Template/JSConfigHelper.php @@ -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;