Toggle navigation
Hot Examples
JP
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
検索
Home
UserIdentity
PHP Class UserIdentity
ファイルを表示
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.