$user
$user : \Vigas\Application\Model\User
Class UserManager.
Manages an authenticated user account
$user : \Vigas\Application\Model\User
createAccount(string $username, string $email, string $password, string $password2, string|null $remember_me = null) : string
Validates given data to create a user account and calls insertUser method
| string | $username | The user username |
| string | The user email address |
|
| string | $password | The user password |
| string | $password2 | The user password (confirm your password field) |
| string|null | $remember_me | The remember me checkbox |
The error message if some data were not validated
logUser(string $username, string $password, string|null $remember_me = null) : string
Logs a user, gets his streaming platform accounts and redirect him to the following page
| string | $username | The user username |
| string | $password | The user password |
| string|null | $remember_me | The remember me checkbox |
The error message if the user or password are wrong
changePassword(string $current_password, string $new_password, string $new_password_2) : string
Validates given data to change a user paswword and calls updatePassword method
| string | $current_password | The user current password |
| string | $new_password | The new user password |
| string | $new_password_2 | The new user password (confirm your password field) |
The error message if some data were not validated
resetPassword(integer $id, string $token, string $new_password, string $new_password_2) : string
Validates given data to reset a user paswword and calls updatePassword method
| integer | $id | The user id |
| string | $token | The reset password token |
| string | $new_password | The new user password |
| string | $new_password_2 | The new user password (confirm your password field) |
The error message if some data were not validated