fix password check when using remember me login
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
f4cf125a4a
commit
dd7d493e4d
|
@ -127,10 +127,9 @@ class JSConfigHelper {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->currentUser instanceof IUser) {
|
if ($this->currentUser instanceof IUser) {
|
||||||
$lastConfirmTimestamp = $this->currentUser->getLastLogin();
|
$lastConfirmTimestamp = $this->session->get('last-password-confirm');
|
||||||
$sessionTime = $this->session->get('last-password-confirm');
|
if (!is_int($lastConfirmTimestamp)) {
|
||||||
if (is_int($sessionTime)) {
|
$lastConfirmTimestamp = 0;
|
||||||
$lastConfirmTimestamp = $sessionTime;
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$lastConfirmTimestamp = 0;
|
$lastConfirmTimestamp = 0;
|
||||||
|
|
Loading…
Reference in New Issue