framework/gii/models/LoginForm.php
public function login()
	{
		if($this->_identity===null)
		{
			$this->_identity=new UserIdentity('yiier',$this->password);
			$this->_identity->authenticate();
		}
		if($this->_identity->errorCode===UserIdentity::ERROR_NONE)
		{
			Yii::app()->user->login($this->_identity);
			return true;
		}
		else
			return false;
	}
public function login()
	{
		if($this->_identity===null)
		{
			$this->_identity=new UserIdentity('yiier',$this->password);
			$this->_identity->authenticate();
		}
		if($this->_identity->errorCode===UserIdentity::ERROR_NONE)
		{
			Yii::app()->user->login($this->_identity);
			return true;
		}
		else
			return false;
	}
public function login ( ) { if ( $ this -> _identity === null ) { $ this -> _identity = new UserIdentity ( 'yiier' , $ this -> password ) ; $ this -> _identity -> authenticate ( ) ; } if ( $ this -> _identity -> errorCode === UserIdentity :: ERROR_NONE ) { Yii :: app ( ) -> user -> login ( $ this -> _identity ) ; return true ; } else return false ; }
Logs in the user using the given password in the model.
@return boolean whether login is successful
Logs in the user using the given password in the model .