feat: fix compile

This commit is contained in:
Tim
2025-08-04 21:15:20 +08:00
parent 6fa5978613
commit e886142b39
2 changed files with 5 additions and 2 deletions

View File

@@ -17,7 +17,6 @@ import com.openisle.exception.FieldException;
import lombok.Data;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.*;
import org.springframework.beans.factory.annotation.Value;
import java.util.Map;
@@ -155,7 +154,7 @@ public class AuthController {
));
}
if (req.reason == null || req.reason.length() <= 20) {
if (req.getReason() == null || req.getReason().length() <= 20) {
return ResponseEntity.badRequest().body(Map.of(
"error", "Reason's length must longer than 20",
"reason_code", "INVALID_CREDENTIALS"