TwistPHP Documentation


File path: dist/twist/Core/Controllers/BaseUser.controller.php
Namespace: Twist\Core\Controllers
Extends: Base

authenticateAuthentication script, upon login the post request will be sent to this script. If the login is successful the user will be redirected to the entry page or './'.
if hte login request has failed the user will be forwarded on to the relevant page i.e Change Password, Verify Account or the login page with an error message.

Return Values

void — No return information has been documented for this function.


/** --------- Option 1 --------- */

//Register a dynamic route that will direct all function requests to the controller
Twist::Route() -> controller('/baseuser%','\Twist\Core\Controllers\BaseUser');

/** --------- Option 2 --------- */

//Or you can register a route to only direct the current request to a particular controller method
Twist::Route() -> get('/baseuser/authenticate',array('\Twist\Core\Controllers\BaseUser','authenticate'));