-
Notifications
You must be signed in to change notification settings - Fork 194
Controller Tools
Jeff Johns edited this page Feb 4, 2014
·
4 revisions
Controller | Extends | Path |
---|---|---|
Tools | Plain_Controller | /application/controllers/tools.php |
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.
Called automatically which in turn calls the parent constructor. It also does the following:
- Checks if request is XMLHttpRequest, redirect out if not
Generate password recovery token and send it via email.
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
Verify if given password recovery token is valid
Param | Type | Default | Required | Description |
---|---|---|---|---|
token | string | null | Yes | Password recovery token. |
URL: /tools/verifyToken
Reset users password given the token, invalidate token and send notification about password changed
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