controllers / account.php
Account
Controller
Manages everything account related. Covers logging and logging out, permissions, groups, account settings, creating new accounts, and recovering passwords. Specifically to be used by individual accounts; for managing lists of permissions, users, and groups, use the Users controller.
public
forgotpass
(
)
public
forgotpass
(
)
Send message to provided email to aid in recovering account with forgotten password.
email |
public
groups
(
)
public
groups
(
)
Return currently logged in user groups.
group_names_array
public
key_delete
(
)
public
key_delete
(
)
Delete App Key for currently logged in user. Requires 'manage_appkeys' permission. Connects to users model.
id |
is_deleted?
public
key_load
(
)
public
key_load
(
)
Load App Keys for currently logged in user. Requires 'manage_appkeys' permission. Connects to users model.
appkeys
public
key_new
(
)
public
key_new
(
)
Generate a new App Key for the logged in user. Requires the 'manage_appkeys' permission. Connects to the users model.
[id, name, key]
public
key_permissions_save
(
)
public
key_permissions_save
(
)
Save App Key permissions. Requires 'manage_appkeys' permission. Connects to users model.
id |
|
permissions |
public
login
(
)
public
login
(
)
Login using the provided username and password.
username |
|
password |
[id, key, key_expiry]
public
logout
(
)
public
logout
(
)
Logout currently logged in user.
public
newaccount
(
)
public
newaccount
(
)
Create a new account using the provided fields if user registration is currently enabled, and all the fields are validated.
name |
|
email |
|
username |
public
permissions
(
)
public
permissions
(
)
Return currently logged in user permissions.
permission_array
public
settings
(
)
public
settings
(
)
Return userdata (except for sensitive information) for currently logged in user.
user_fields_array
public
uid
(
)
public
uid
(
)
Return currently logged in username and user id.
[id, username]
public
update_settings
(
)
public
update_settings
(
)
Update currently logged in user settings.
name |
|
password |
|
password_again |
|
email |
|
display_name |
|
language |
|
theme |
|
dyslexia_friendly_font |
Boolean set to TRUE for using a dyslexia-friendly font. |
sidebar_display_left |
Boolean set to TRUE when displaying the sidebar on the left side. |