public function login() {
		$externalAuth = false;
		if (isset($this->Auth->authenticate['CakeLdap.Ldap']['externalAuth'])) {
			$externalAuth = $this->Auth->authenticate['CakeLdap.Ldap']['externalAuth'];
		}

		if ($this->request->is('post') || ($externalAuth === true)) {
			if ($this->Auth->login()) {
				return $this->redirect($this->Auth->redirectUrl());
			}
			$this->Flash->error(__d('cake_ldap', 'Invalid username or password, try again'));
		}

		$this->set('pageTitle', __d('cake_ldap', 'Login'));
	}
public function login() {
		$externalAuth = false;
		if (isset($this->Auth->authenticate['CakeLdap.Ldap']['externalAuth'])) {
			$externalAuth = $this->Auth->authenticate['CakeLdap.Ldap']['externalAuth'];
		}

		if ($this->request->is('post') || ($externalAuth === true)) {
			if ($this->Auth->login()) {
				return $this->redirect($this->Auth->redirectUrl());
			}
			$this->Flash->error(__d('cake_ldap', 'Invalid username or password, try again'));
		}

		$this->set('pageTitle', __d('cake_ldap', 'Login'));
	}
public function login ( ) { $ externalAuth = false ; if ( isset ( $ this -> Auth -> authenticate [ 'CakeLdap.Ldap' ] [ 'externalAuth' ] ) ) { $ externalAuth = $ this -> Auth -> authenticate [ 'CakeLdap.Ldap' ] [ 'externalAuth' ] ; } if ( $ this -> request -> is ( 'post' ) || ( $ externalAuth === true ) ) { if ( $ this -> Auth -> login ( ) ) { return $ this -> redirect ( $ this -> Auth -> redirectUrl ( ) ) ; } $ this -> Flash -> error ( __d ( 'cake_ldap' , 'Invalid username or password, try again' ) ) ; } $ this -> set ( 'pageTitle' , __d ( 'cake_ldap' , 'Login' ) ) ; }
Action `login`. Used to login user.

@return void
Action login . Used to login user .