* userModel: refactor the identifyByPhpAuth method.

This commit is contained in:
liugang
2023-12-07 14:05:12 +08:00
parent 052dc72cfe
commit be5c46e46d
+3 -2
View File
@@ -939,12 +939,13 @@ class userModel extends model
}
/**
* Identify user by PHP_AUTH_USER.
* 根据 PHP 的 HTTP 认证验证用户。
* Identify user by PHP HTTP auth.
*
* @access public
* @return bool
*/
public function identifyByPhpAuth()
public function identifyByPhpAuth(): bool
{
$account = $this->server->php_auth_user;
$password = $this->server->php_auth_pw;