luyadev/luya-module-userauth
最新稳定版本:1.1.2
Composer 安装命令:
composer require luyadev/luya-module-userauth
包简介
Authsystem with username and password for a given cms page area.
README 文档
README
LUYA Frontend user authentification
Authsystem with username and password for a given cms page area. It does not contain a registration process for new users in the frontend!.
Installation
- Install the extension through composer:
composer require luyadev/luya-module-userauth
- Add to the config
'modules' => [ //... 'userauthfrontend' => [ 'class' => 'luya\userauth\frontend\Module', 'useAppViewPath' => false, // When enabled the views will be looked up in the @app/views folder, otherwise the views shipped with the module will be used. ], 'userauthadmin' => 'luya\userauth\admin\Module', ],
- And the user component
'components' => [ //... 'user' => [ 'class' => 'yii\web\User', 'identityClass' => 'luya\userauth\models\User', ] ],
- Run the
./luya migrateand./luya importcommand. - Place the
userauthfrontendmodule on a given page in the cms. - Add the config variable identifier
userauth_redirect_nav_idwith the value of the page you have included theuserauthfrontendin step 5. - Optional you can configure with the variable identifer
userauth_afterlogin_nav_idon which nav id the user should be redirect when no ref url is provided.
Usage
After the installation, you can secure any given page with the user login by checking the Protect Page checkbox in the page's Page properties panel. Important: this setting will not be inherited by subpages, it has to be set for every page that has to be secured.
统计信息
- 总下载量: 1.98k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-06-25
