定制 luyadev/luya-module-basicauth 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

LUYA Tests Total Downloads Latest Stable Version Test Coverage

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

GitHub 信息

  • Stars: 0
  • Watchers: 4
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-03-24