build/commands/lite/protected/components/UserIdentity.php
public function authenticate()
	{
		if($this->username==='demo' && $this->password==='demo')
			$this->errorCode=self::ERROR_NONE;
		else
			$this->errorCode=self::ERROR_PASSWORD_INVALID;
		return !$this->errorCode;
	}
public function authenticate()
	{
		if($this->username==='demo' && $this->password==='demo')
			$this->errorCode=self::ERROR_NONE;
		else
			$this->errorCode=self::ERROR_PASSWORD_INVALID;
		return !$this->errorCode;
	}
public function authenticate ( ) { if ( $ this -> username === 'demo' && $ this -> password === 'demo' ) $ this -> errorCode = self :: ERROR_NONE ; else $ this -> errorCode = self :: ERROR_PASSWORD_INVALID ; return ! $ this -> errorCode ; }
Validates the username and password.
This method should check the validity of the provided username
and password in some way. In case of any authentication failure,
set errorCode and errorMessage with appropriate values and return false.
@param string username
@param string password
@return boolean whether the username and password are valid
Validates the username and password . This method should check the validity of the provided username and password in some way . In case of any authentication failure set errorCode and errorMessage with appropriate values and return false .