Skip to content

makseo/cakephp_max_auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MaxAuth Cakephp 2.0 ACL Management Plugin

  • supports creation of user groups;
  • access rights for groups and for each user individually
  • recaptcha support
  • javascript form validation with qtip hints
  • facebook oauth
  • admin panel

Installation

Сlone repository into app/Plugin directory

git clone http://github.com/makseo/MaxAuth.git

Add following line into your app/Config/bootstrap.php file

CakePlugin::load('MaxAuth', array('routes' => true));

Change config.php settings for Recaptcha and Facebook oAuth

Add following code into your app/Controller/AppController.php filer

public $components = array('Acl', 'Session', 'Auth');

public $helpers = array('Html', 'Form', 'Session', 'MaxAuth.Auth');

public function beforeFilter()
{
    parent::beforeFilter();

    $this->Auth->loginAction = array('plugin' => 'MaxAuth', 'controller' => 'users', 'action' => 'login');
    $this->Auth->authorize = array(AuthComponent::ALL => array('actionPath' => 'controllers'), 'Actions');
}

Then from the command line call

Console/cake max_auth.max_auth init

NOTICE! After each change in controller or action you have to call

Console/cake max_auth.max_auth update

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages