PHP 클래스 UserIdentity

파일 보기 프로젝트 열기: crisu83/yii-app 1 사용 예제들

공개 메소드들

메소드 설명
authenticate ( ) : boolean Authenticates a user.

메소드 상세

authenticate() 공개 메소드

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
리턴 boolean whether authentication succeeds.