TwistPHP Documentation

POSTforgottenpassword

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

POSTforgottenpasswordThe forgotten password request is processed by this function, if the details are correct the user is emailed a temporary password and then redirected to the login page.
If the request has failed the user will be shown the forgotten password form again.

Return Values

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

Example

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