UserIdentity

Extends\CUserIdentity

UserIdentity represents the data needed to identity a user.

It contains the authentication method that checks if the provided data can identity the user.

package

Default

Methods

Validates the username and password.

authenticate(): boolean

This method should check the validity of the provided username and password in some way. In case of any authentication failure, set errorCode and errorMessage with appropriate values and return false.

Response

boolean

whether the username and password are valid