public function lastLogin()
    {
        //Checks if login logs are enabled
        if (!getConfig('users.login_log')) {
            $this->Flash->error(I18N_DISABLED);

            return $this->redirect(['_name' => 'dashboard']);
        }

        $this->set('loginLog', $this->LoginRecorder->setConfig('user', $this->Auth->user('id'))->read());
    }
public function lastLogin()
    {
        //Checks if login logs are enabled
        if (!getConfig('users.login_log')) {
            $this->Flash->error(I18N_DISABLED);

            return $this->redirect(['_name' => 'dashboard']);
        }

        $this->set('loginLog', $this->LoginRecorder->setConfig('user', $this->Auth->user('id'))->read());
    }
public function lastLogin ( ) { //Checks if login logs are enabled if ( ! getConfig ( 'users.login_log' ) ) { $ this -> Flash -> error ( I18N_DISABLED ) ; return $ this -> redirect ( [ '_name' => 'dashboard' ] ) ; } $ this -> set ( 'loginLog' , $ this -> LoginRecorder -> setConfig ( 'user' , $ this -> Auth -> user ( 'id' ) ) -> read ( ) ) ; }
Displays the login log
@return \Cake\Network\Response|null|void
@uses MeCms\Controller\Component\LoginRecorderComponent::read()
Displays the login log