Beispiel #1
0
 public function __construct($configs)
 {
     parent::__construct($configs);
     $this->load('Services\\Auth', $configs->auth->after_login, $configs->auth->after_logout, true);
     $this->auth->redirectCheck(true);
     #true -> se já autenticado redireciona
 }
 public function __construct($configs)
 {
     parent::__construct($configs);
     $this->load('Services\\Auth', $configs->auth->after_login, $configs->auth->after_logout, true);
     $this->auth->redirectCheck(true);
     $this->view->setTitle('SistemaHX - Altere sua senha');
     $this->load('Modules\\Messages', 'password-recovery');
     $this->messages->setBlock('alerts');
 }
 public function __construct($configs)
 {
     parent::__construct($configs);
     $this->load('Services\\Auth', $configs->auth->after_login, $configs->auth->after_logout, true);
     $this->auth->redirectCheck();
     $this->load('Helpers\\Menu', $this->request, $this->configs, $this->auth->getUserRole());
     $user_id = $this->auth->getUserId();
     $this->view->setTitle('HXPHP - Editar perfil')->setVar('user', User::find($user_id));
 }
Beispiel #4
0
 public function __construct($configs)
 {
     parent::__construct($configs);
     $this->load('Services\\Auth', $configs->auth->after_login, $configs->auth->after_logout, true);
     if ($this->request->action === 'logoutAction') {
         $this->logout();
     } else {
         $this->auth->redirectCheck(true);
         #true -> se já autenticado redireciona
     }
 }
 public function __construct($configs)
 {
     parent::__construct($configs);
     $this->load('Services\\Auth', $configs->auth->after_login, $configs->auth->after_logout, true);
     $this->auth->redirectCheck();
     $user_id = $this->auth->getUserId();
     $user = User::find($user_id);
     $role = Role::find($user->role_id);
     $this->load('Helpers\\Menu', $this->request, $this->configs, $role->role);
     $this->view->setTitle('HXPHP - Administrativo')->setVar('user', $user);
 }
 public function __construct($configs)
 {
     parent::__construct($configs);
     $this->load('Services\\Auth', $configs->auth->after_login, $configs->auth->after_logout, true);
 }