bariew / yii2-user-cms-module
用户模块
2.0.0-alpha.1
2016-06-15 18:13 UTC
Requires
- bariew/yii2-abstract-module: *
- bariew/yii2-tools: dev-master
- yiisoft/yii2-authclient: ~2.0.0
This package is auto-updated.
Last update: 2024-09-16 15:11:32 UTC
README
标准的yii2用户管理模块。
安装
- 在应用配置中提及模块类
'modules' => [
...
'user' => [
'class' => 'bariew\userModule\Module',
'params' => [
'emailConfirm' => false, // whether registration email confirm is required
'resetTokenExpireSeconds' => 86400 // seconds till password reset token expires
]
]
]
- 设置应用用户组件身份类。
'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',
],
],
]
]