public function login()
    {
        if (!$this->authenticate())
            return false;

        if($this->_identity->errorCode===RemoteUserIdentity::ERROR_NONE)
		{
            Yii::app()->user->logout();
			return Yii::app()->user->login($this->_identity,3600*24);
		}
		else
			return false;

    }