You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/**
* Gets the currently logged in user from the session (with auto_login check).
* Returns FALSE if no user is currently logged in.
*
* @return mixed
*/
public function get_user($default = NULL)
{
$user = parent::get_user($default);
if ( ! $user)
{
// check for "remembered" login
$user = $this->auto_login();
}
return $user;
}
parent::get_user() is returning NULL by default and auto_login() is returning FALSE.
We should use public function get_user($default = FALSE) to get a consitency.
The text was updated successfully, but these errors were encountered:
At this file:
https://github.com/open-classifieds/common/blob/master/classes/auth/oc.php
parent::get_user() is returning NULL by default and auto_login() is returning FALSE.
We should use public function get_user($default = FALSE) to get a consitency.
The text was updated successfully, but these errors were encountered: