authenticate() public method

Redirect to the login screen if authentication fails
public authenticate ( ) : boolean
return boolean True if the user could be authenticated
Esempio n. 1
0
 /**
  * Initialize the controller.
  *
  * The workflow is:
  * 1. Import user.
  * 2. Call parent constructor
  * 3. Authenticate user
  * 4. Load language files
  * DO NOT CHANGE THIS ORDER!
  */
 public function __construct()
 {
     $this->User = \BackendUser::getInstance();
     parent::__construct();
     $this->User->authenticate();
     $this->loadLanguageFile('default');
     $this->loadLanguageFile('modules');
 }