Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
UserIdentity
PHP Class UserIdentity
Show file
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.