propellerstudios/users-plugin 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

propellerstudios/users-plugin

最新稳定版本:v0.1.0

Composer 安装命令:

composer require propellerstudios/users-plugin

包简介

Users plugin for CakePHP

README 文档

README

A CakePHP 3.x plugin for users. The original concept is boilerplate user management using the default CakePHP Auth component.

To use this plugin simply require it with Composer.

$ composer require propellerstudios/users-plugin

Once Composer has the necessary files, run a migration to add the users table to your database.

$ bin/cake migrations migrate -p Propeller/Users

Configuration

In order for this plugin to work properly, you must set the bootstrap directive on the plugin load command in your applications bootstrap file. The purpose of the plugin's bootstrap file is to load the configuration properly. The plugin also sets and handles routes.

Plugin::load('Propeller/Users', ['bootstrap' => true, 'routes' => true]);

There are several keys for configuring the Users plugin.

  • use_email_as_username
  • first_user_is_admin
  • use_main_route_scope
  • use_dashboard_route
  • open_registration
  • send_email_verification
  • white_list

All of these keys are boolean values save for white_list which is an array of actions that are available to non-authorized visitors of the site. To overwrite any of these, after your Plugin::load() command, just rewrite the keys that you wish like so:

Configure::write('Users.white_list', ['index', 'view']);
Configure::write('Users.use_email_as_username', false);

统计信息

  • 总下载量: 8
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-10-22