From be5c46e46da82b6e758d050b2b0b84c1dff332d1 Mon Sep 17 00:00:00 2001 From: liugang Date: Thu, 7 Dec 2023 14:05:12 +0800 Subject: [PATCH] * userModel: refactor the identifyByPhpAuth method. --- module/user/model.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/module/user/model.php b/module/user/model.php index 83ce3446a5..f4e7f1d047 100644 --- a/module/user/model.php +++ b/module/user/model.php @@ -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;