Class UserConstants
Defines some constants to be used in User management.
Constants summary
string |
STATUS_ACTIVE
The user is accepted / active / enabled. |
#
'a'
|
string |
STATUS_DISABLED
The user is suspended / disabled. |
#
'd'
|
string |
STATUS_OUTDATED
The user is outdated (i.e. in need of a password rehash). |
#
'o'
|
string |
STATUS_PASSWORD_RESET
The user requested a password reset. |
#
'r'
|
integer |
ROLE_SUPERADMIN
This is the one and only HRM super administrator. |
#
0
|
integer |
ROLE_ADMIN
The user is an HRM instance administrator. |
#
1
|
integer |
ROLE_MANAGER
The user is an HRM institution manager. |
#
2
|
integer |
ROLE_SUPERUSER
The user is an HRM super user. |
#
3
|
integer |
ROLE_USER
The user is an HRM standard user. |
#
4
|
integer |
HASH_ALGORITHM
The password hashing algorithm. |
#
PASSWORD_BCRYPT
|
integer |
HASH_ALGORITHM_COST
The password hashing algorithm cost. |
#
15
|