-
Notifications
You must be signed in to change notification settings - Fork 194
Controller User
Jeff Johns edited this page Feb 12, 2014
·
2 revisions
Controller | Extends | Path |
---|---|---|
User | Plain_Controller | /application/controllers/user.php |
Type | Accessible |
---|---|
XMLHttpRequest | Internal Only |
API | No |
Web View | No |
This controller handle requests for updating user information.
Called automatically which in turn calls the parent constructor. It also does the following:
- Redirects the user if no user id is found
- Sets default success to false
- Loads user model
Returns and invalid request error. Not used.
Updates the user's email address.
Variable | Type | Default | Required | Options | Description |
---|---|---|---|---|---|
String | N/A | Yes | N/A | The new email address. |
URL: /user/update/email
Query Parameters: [email protected]
Updates the user's password.
Variable | Type | Default | Required | Options | Description |
---|---|---|---|---|---|
current_password | String | N/A | Yes | N/A | The current password. |
password | String | N/A | Yes | N/A | The new password. |
URL: /user/update/password
Query Parameters: password=superSecret¤t_password=notSecretEnough