yiiapi/framework/gii/components/UserIdentity.php

(完整代码) 575B

<?php

class UserIdentity extends CUserIdentity
{
	/**
	 * Authenticates a user.
	 * @return boolean whether authentication succeeds.
	 * @throws CException
	 */
	public function authenticate()
	{
		$password=Yii::app()->getController()->getModule()->password;
		if($password===null)
			throw new CException('Please configure the "password" property of the "gii" module.');
		elseif($password===false || $password===$this->password)
			$this->errorCode=self::ERROR_NONE;
        else
            $this->errorCode=self::ERROR_UNKNOWN_IDENTITY;
		return !$this->errorCode;
	}
}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。