PHP Class UserIdentity

Datei anzeigen Open project: crisu83/yii-app Class Usage Examples

Public Methods

Method Description
authenticate ( ) : boolean Authenticates a user.

Method Details

authenticate() public method

The example implementation makes sure if the username and password are both 'demo'. In practical applications, this should be changed to authenticate against some persistent user identity storage (e.g. database).
public authenticate ( ) : boolean
return boolean whether authentication succeeds.