25 return
ClassUtils::getClassSimpleName(\get_class($this));
52 return USession::get($this->_getUserSessionKey());
84 $id= $this->toCookie($connected);
86 UCookie::set($this->_getUserSessionKey(),$id);
95 return UCookie::get($this->_getUserSessionKey());
Manipulates class and namespace names Ubiquity\cache$ClassUtils This class is part of Ubiquity.
Trait AuthControllerOverrideTrait.
_connect()
Processes the data posted by the login form Have to return the connected user instance.
_getActiveUser()
To override for getting active user, default : USession::get("activeUser")
rememberMe($connected)
Saves the connected user identifier in a cookie.
getCookieUser()
Returns the cookie for auto connection.
getFiles()
To override for changing view files.
onBadCreditentials()
To override for defining a new action when creditentials are invalid.
_isValidUser($action=null)
Checks if user is valid for the action.
fromCookie($cookie)
Loads the user from database using the cookie value.
toCookie($connected)
Returns the value from connected user to save it in the cookie for auto connection.
_getBaseRoute()
To override Return the base route for this Auth controller.
Ubiquity\controllers\auth$AuthFiles This class is part of Ubiquity.
Http Cookies utilities Ubiquity\utils\http$UCookie This class is part of Ubiquity.
Http Session utilities This class is part of Ubiquity.