Yii2 user module.
Standard yii2 module for user management., (*1)
Installation
- Mention module class in app config
'modules' => [
...
'user' => [
'class' => 'bariew\userModule\Module',
'params' => [
'emailConfirm' => false, // whether registration email confirm is required
'resetTokenExpireSeconds' => 86400 // seconds till password reset token expires
]
]
]
- Set app user component identity class.
'components' => [
...
'user' => [
'identityClass' => 'bariew\userModule\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',
],
],
]
]