TwistPHP Documentation


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

POSTchangepasswordThe change password request is processed by this function, if the details are all correct the user will be redirected to the entry page or './'.
If there is a problem with the data entered the user will see the change password page again.

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/postchangepassword',array('\Twist\Core\Controllers\BaseUser','POSTchangepassword'));