Ubiquity 2.5.2
php rapid development framework
|
Trait AuthControllerOverrideTrait. More...
Public Member Functions | |
badLogin () | |
_getUserSessionKey () | |
_getBaseRoute () | |
To override Return the base route for this Auth controller. | |
_getActiveUser () | |
To override for getting active user, default : USession::get("activeUser") | |
_isValidUser ($action=null) | |
Checks if user is valid for the action. | |
Protected Member Functions | |
_connect () | |
Processes the data posted by the login form Have to return the connected user instance. | |
onConnect ($connected) | |
onBadCreditentials () | |
To override for defining a new action when creditentials are invalid. | |
toCookie ($connected) | |
Returns the value from connected user to save it in the cookie for auto connection. | |
fromCookie ($cookie) | |
Loads the user from database using the cookie value. | |
rememberMe ($connected) | |
Saves the connected user identifier in a cookie. | |
getCookieUser () | |
Returns the cookie for auto connection. | |
getFiles () | |
To override for changing view files. | |
Trait AuthControllerOverrideTrait.
Definition at line 13 of file AuthControllerOverrideTrait.php.
|
abstractprotected |
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")
Definition at line 51 of file AuthControllerOverrideTrait.php.
_getBaseRoute | ( | ) |
To override Return the base route for this Auth controller.
Definition at line 24 of file AuthControllerOverrideTrait.php.
|
abstract |
Reimplemented in AuthControllerConfig.
|
abstract |
Checks if user is valid for the action.
string | $action | return boolean true if activeUser is valid |
|
abstract |
Reimplemented in AuthController.
|
protected |
Loads the user from database using the cookie value.
string | $cookie |
Definition at line 74 of file AuthControllerOverrideTrait.php.
|
protected |
Returns the cookie for auto connection.
Definition at line 94 of file AuthControllerOverrideTrait.php.
|
protected |
To override for changing view files.
Definition at line 102 of file AuthControllerOverrideTrait.php.
|
protected |
To override for defining a new action when creditentials are invalid.
Definition at line 42 of file AuthControllerOverrideTrait.php.
|
abstractprotected |
object | $connected |
|
protected |
Saves the connected user identifier in a cookie.
object | $connected |
Definition at line 83 of file AuthControllerOverrideTrait.php.
|
protected |
Returns the value from connected user to save it in the cookie for auto connection.
object | $connected |
Definition at line 66 of file AuthControllerOverrideTrait.php.