File path: dist/twist/Core/Controllers/BaseUser.controller.php
Namespace: Twist\Core\Controllers
Extends: Base
changepassword
— The change password form can display two types of form, the one that contains a box to enter your current password and your new password or a form that only required your new password to be entered.
The form that does not required you to enter your current password as well will only be displayed when you have a temporary password that needs to be personalised.
void — No return information has been documented for this function.
<?php
/** --------- 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/changepassword',array('\Twist\Core\Controllers\BaseUser','changepassword'));