Controller Tools
| Controller | Extends | Path |
|---|---|---|
| Tools | Plain_Controller | /application/controllers/tools.php |
Request Types
| Type | Accessible |
|---|---|
| XMLHttpRequest | Internal Only |
| API | No |
| Web View | No |
This controller handles anonymous internal admin XMLHttpRequest actions called by frontend app for not logged in users.
Methods
__construct - Public
Called automatically which in turn calls the parent constructor. It also does the following:
- Checks if request is XMLHttpRequest, redirect out if not
forgotPassword - Public
Generate password recovery token and send it via email.
Passed Parameters
| Param | Type | Default | Required | Description |
|---|---|---|---|---|
| null | Yes | Email address for each we want token to be generated and recovery link to be generated. |
URL: /tools/forgotPassword
verifyToken - Public
Verify if given password recovery token is valid
Passed Parameters
| Param | Type | Default | Required | Description |
|---|---|---|---|---|
| token | string | null | Yes | Password recovery token. |
resetPassword - Public
Reset users password given the token, invalidate token and send notification about password changed
Passed Parameters
| Param | Type | Default | Required | Description |
|---|---|---|---|---|
| token | string | null | Yes | Password recovery token. |
| password | password | null | Yes | New password to set for user. |
URL: /tools/resetPassword