Toggle navigation
Hot Examples
ZH
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.