From fe0d8a2ecffdc1cd1e7d19c4a8a545e0aaf5b1ed Mon Sep 17 00:00:00 2001 From: liugang Date: Fri, 10 May 2024 17:25:22 +0800 Subject: [PATCH] Revert "* userModel: fix sql error data too long to be truncated." This reverts commit 68383ef62cf4d937c288a2a3ff129daf6b6ec4a2. --- module/user/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/user/model.php b/module/user/model.php index 555bf69694..d4d5d66167 100644 --- a/module/user/model.php +++ b/module/user/model.php @@ -878,7 +878,7 @@ class userModel extends model $user = $this->identifyUser($account, $password); if(!$user) return false; - $ip = substr(helper::getRemoteIp(), 0, 15); + $ip = helper::getRemoteIp(); $last = $this->server->request_time; $user = $this->checkNeedModifyPassword($user, $passwordStrength);