class UserPassword

Functions for user password

Methods

__construct(Privileges $serverPrivileges)

UserPassword constructor.

void
getChangePassMessage(array $change_password_message, string $sql_query = '')

Send the message as an ajax request

array
setChangePasswordMsg()

Generate the message

void
changePassword(string $password, string $message, array $change_password_message)

Change the password

Details

at line 35
__construct(Privileges $serverPrivileges)

UserPassword constructor.

Parameters

Privileges $serverPrivileges Privileges object

at line 48
void getChangePassMessage(array $change_password_message, string $sql_query = '')

Send the message as an ajax request

Parameters

array $change_password_message Message to display
string $sql_query SQL query executed

Return Value

void

at line 75
array setChangePasswordMsg()

Generate the message

Return Value

array error value and message

at line 109
void changePassword(string $password, string $message, array $change_password_message)

Change the password

Parameters

string $password New password
string $message Message
array $change_password_message Message to show

Return Value

void