--- fenglin/bbs/user_login_service.php 2025/04/01 02:45:18 1.2 +++ fenglin/bbs/user_login_service.php 2025/04/01 02:50:39 1.3 @@ -29,7 +29,7 @@ header("Content-Type:application/json; charset=utf-8"); // Validate input data - if (!preg_match("/^[A-Za-z][A-Za-z0-9]{4,11}$/", $username)) + if (!preg_match("/^[A-Za-z][A-Za-z0-9]{2,11}$/", $username)) { $result_set["return"]["code"] = -1; array_push($result_set["return"]["errorFields"], array( @@ -49,7 +49,7 @@ if ($ch_passwd) { - if (!preg_match("/^[A-Za-z0-9]{5,12}$/", $password_new)) + if (!preg_match("/^[A-Za-z0-9]{6,12}$/", $password_new)) { $result_set["return"]["code"] = -1; array_push($result_set["return"]["errorFields"], array(