Bugfix: detect the AccountSignMe again

This commit is contained in:
djmaze 2021-11-12 21:53:27 +01:00
parent 070fc14c4f
commit c561493bd0

View file

@ -881,8 +881,7 @@ class Actions
$aResult['IncLogin'] = $oAccount->IncLogin();
$aResult['OutLogin'] = $oAccount->OutLogin();
$aResult['AccountHash'] = $oAccount->Hash();
// $aResult['AccountSignMe'] = $oAccount->SignMe();
$aResult['AccountSignMe'] = false;
$aResult['AccountSignMe'] = isset($_COOKIE[self::AUTH_SIGN_ME_TOKEN_KEY]);
$aResult['ContactsIsAllowed'] = $this->AddressBookProvider($oAccount)->IsActive();
$aResult['ContactsSyncIsAllowed'] = (bool)$oConfig->Get('contacts', 'allow_sync', false);
$aResult['ContactsSyncInterval'] = (int)$oConfig->Get('contacts', 'sync_interval', 20);