mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-04 07:34:09 +01:00
* [ADD] New encryption schema by using Defuse/php-encryption library. WARNING: work in progress
This commit is contained in:
@@ -507,7 +507,9 @@ class Init
|
||||
*/
|
||||
public static function isLoggedIn()
|
||||
{
|
||||
return (DiFactory::getDBStorage()->getDbStatus() === 0 && Session::getUserData()->getUserLogin());
|
||||
return (DiFactory::getDBStorage()->getDbStatus() === 0
|
||||
&& Session::getUserData()->getUserLogin()
|
||||
&& is_object(Session::getUserPreferences()));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user