PHP Class UserIdentity

Afficher le fichier Open project: crisu83/yii-app Class Usage Examples

Méthodes publiques

Méthode Description
authenticate ( ) : boolean Authenticates a user.

Method Details

authenticate() public méthode

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
Résultat boolean whether authentication succeeds.