bariew / yii2-module-abstract-user
User module
Installs: 45
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- bariew/yii2-module-abstract: *
- bariew/yii2-tools: dev-master
- yiisoft/yii2-authclient: ~2.0.0
This package is auto-updated.
Last update: 2024-12-18 23:50:06 UTC
README
Yii2 user module. =================== Standard yii2 module for user management. Installation ------------ 1. Mention module class in app config ``` 'modules' => [ ... 'user' => [ 'class' => 'bariew\userAbstractModule\UserModule', 'params' => [ 'emailConfirm' => false, // whether registration email confirm is required 'resetTokenExpireSeconds' => 86400 // seconds till password reset token expires ] ] ] ``` 2. Set app user component identity class. ``` 'components' => [ ... 'user' => [ 'identityClass' => 'bariew\userAbstractModule\models\User', ], 'authClientCollection' => [ 'class' => 'yii\authclient\Collection', 'clients' => [ 'google' => [ 'class' => 'yii\authclient\clients\GoogleOAuth', 'clientId' => 'google_client_id', 'clientSecret' => 'google_client_secret', ], 'facebook' => [ 'class' => 'yii\authclient\clients\Facebook', 'clientId' => 'facebook_client_id', 'clientSecret' => 'facebook_client_secret', ], ], ] ] ```