I tried to make a simple login check but I have inconsistent results when doing this...
I get $isAuthenticated = null for some reason
I would really love to find a core function that retturns the login status as a boolean...
Code:
$authUsername = $_COOKIE['auth-username']; $authPassword = $_COOKIE['auth-token']; $authObject = new \Espo\Core\Utils\Auth($this->getContainer()); $isAuthenticated = $authObject->login($authUsername, $authPassword);
I would really love to find a core function that retturns the login status as a boolean...
Comment