Login methods
Last updated
Was this helpful?
Last updated
Was this helpful?
Checks the given credentials in the database, and logs in the user if they're found to be correct.
userName
The string field that uniquely identifies the user on the database, the one used by the user to login. Usually, an email or a username.
password
The password entered by the user to login.
Returns: One of the available constants signifying the result of the login operation.
Encrypts the given password with the configured password encryption method.
password
The password to encrypt
Returns: The encrypted string, or false if the password could not be encrypted
Checks whether there is a logged user or not.
Returns: True if the current user is logged or false if it's not.
Logs out the current user.
Returns: One of the available constants signifying the result of the logout operation.