luyadev/luya-module-userauth
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.
luyadev/luya-module-userauth 适用场景与选型建议
luyadev/luya-module-userauth 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.99k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2018 年 06 月 25 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「auth」 「luya」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 luyadev/luya-module-userauth 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 luyadev/luya-module-userauth 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 luyadev/luya-module-userauth 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
The LUYA CMS module provides a full functional Content Management System for adding contents based on blocks.
LUYA Generic content
LUYA Bootstrap 3 content
Bootstrap4 Assets and Helper classes like ActiveForm for LUYA and Yii2.
Laravel Multiauth package
The LUYA Privacy extension provides helpers for privacy.
统计信息
- 总下载量: 1.99k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 17
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-06-25
