--- fenglin/bbs/reset_pass_service.php 2025/03/31 14:14:27 1.1 +++ fenglin/bbs/reset_pass_service.php 2025/04/09 06:00:54 1.2 @@ -7,8 +7,8 @@ $data = json_decode(file_get_contents("php://input"), true); - $username = (isset($data["username"]) ? $data["username"] : ""); - $email = (isset($data["email"]) ? $data["email"] : ""); + $username = (isset($data["username"]) ? trim($data["username"]) : ""); + $email = (isset($data["email"]) ? trim($data["email"]) : ""); $result_set = array( "return" => array(