luyadev/luya-module-basicauth
最新稳定版本:1.1.0
Composer 安装命令:
composer require luyadev/luya-module-basicauth
包简介
Adds the typical htaccess auth dialog before each request. This module is made as angular does have problems with basic htaccess authentifications in the administration area.
README 文档
README
Adds the typical htaccess auth dialog before each request. This module is made as angular does have problems with basic htaccess authentifications in the administration area.
Installation & Usage
Add the luyadev/luya-module-basicauth package to your composer config:
composer require luyadev/luya-module-basicauth
Add the module to your configuration in the modules section.
'modules' => [ //... 'basicauth' => [ 'class' => 'luya\basicauth\Module', 'password' => '<DEFINE_THE_PASSWORD_HERE>', ] ]
As the module checks the authentication status on before each request, you have to bootstrap the module inside the bootstrap section of your config:
'bootstrap' => [ 'basicauth', ],
All frontend requests are now protected with your entered password from the config.
统计信息
- 总下载量: 46.84k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-03-24