Skip to content

Rafaj-Design/UserAdmin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UserAdmin

Needs:

to work. Please follow the Authsome and Error plugings instructions to install

Implementation:

  1. In app/Config/bootstrap add: CakePlugin::load('UserAdmin', array('bootstrap' => false, 'routes' => true));

  2. In app/Controller/AppController.php add: App::uses('Me', 'UserAdmin.Lib');

    public function beforeFilter() { $this->checkSecurity();

     parent::beforeFilter();
    

    }

    public function checkSecurity() { if (!(bool)Me::id()) { return $this->redirect(array('controller' => 'users', 'action' => 'logout')); } }

  3. Link to user and team controllers like this: Users index

  4. Shall you require to display login/registration pages in a different layout template, create layout called outer.ctp which will be used instead of the default one

About

user administration for cake PHP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages