mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-14 14:28:27 +08:00
Fixes #3211
This commit is contained in:
@ -8,7 +8,7 @@ Authentication is the act of verifying who a user is, and is the basis of the lo
|
|||||||
In Yii, this entire process is performed semi-automatically, leaving the developer to merely implement [[yii\web\IdentityInterface]], the most important class in the authentication system. Typically, implementation of `IdentityInterface` is accomplished using the `User` model.
|
In Yii, this entire process is performed semi-automatically, leaving the developer to merely implement [[yii\web\IdentityInterface]], the most important class in the authentication system. Typically, implementation of `IdentityInterface` is accomplished using the `User` model.
|
||||||
|
|
||||||
You can find a fully featured example of authentication in the
|
You can find a fully featured example of authentication in the
|
||||||
[advanced application template](installation.md). Below, only the interface methods are listed:
|
[advanced application template](tutorial-advanced-app.md). Below, only the interface methods are listed:
|
||||||
|
|
||||||
```php
|
```php
|
||||||
class User extends ActiveRecord implements IdentityInterface
|
class User extends ActiveRecord implements IdentityInterface
|
||||||
|
Reference in New Issue
Block a user