+
@@ -922,6 +926,27 @@ onBeforeUnmount(() => {
color: #6b7280;
}
+.input-tips {
+ display: flex;
+ flex-direction: column;
+ gap: 8px;
+ padding: 12px;
+ background: rgba(59, 130, 246, 0.05);
+ border-radius: 8px;
+ border: 1px solid rgba(59, 130, 246, 0.2);
+}
+
+.tip-item {
+ font-size: 13px;
+ color: #9ca3af;
+ line-height: 1.5;
+}
+
+.tip-item:first-child {
+ color: #60a5fa;
+ font-weight: 500;
+}
+
.optimize-btn {
display: flex;
justify-content: flex-end;
diff --git a/demo/src/main/java/com/example/demo/controller/AuthApiController.java b/demo/src/main/java/com/example/demo/controller/AuthApiController.java
index 4901461..62e7ea1 100644
--- a/demo/src/main/java/com/example/demo/controller/AuthApiController.java
+++ b/demo/src/main/java/com/example/demo/controller/AuthApiController.java
@@ -7,8 +7,6 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
-import org.springframework.security.authentication.AuthenticationManager;
-import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
@@ -35,9 +33,6 @@ public class AuthApiController {
@Autowired
private UserService userService;
- @Autowired
- private AuthenticationManager authenticationManager;
-
@Autowired
private JwtUtils jwtUtils;
@@ -45,48 +40,16 @@ public class AuthApiController {
private VerificationCodeService verificationCodeService;
/**
- * 用户登录
+ * 用户登录(已禁用,仅支持邮箱验证码登录)
+ * 为了向后兼容,保留此接口但返回提示信息
*/
@PostMapping("/login")
public ResponseEntity