登录增加验证码切换

This commit is contained in:
2026-04-06 23:18:09 +08:00
parent 6f19f7468c
commit 6fb6969d29
2 changed files with 2 additions and 2 deletions

View File

@@ -7,7 +7,7 @@
</Languages>
</inspection_tool>
<inspection_tool class="ExtractMethodRecommender" enabled="true" level="WARNING" enabled_by_default="true">
<option name="minLength" value="923" />
<option name="minLength" value="1089" />
</inspection_tool>
</profile>
</component>

View File

@@ -77,7 +77,7 @@ public class AuthController {
// 获取客户端 IP
String clientIp = getClientIp(httpRequest);
User user = userService.createUser(username, password, nickname != null ? nickname : username, clientIp);
User user = userService.createUser(username, password, nickname, clientIp);
return ResponseEntity.ok(Map.of("message", "注册成功", "data", Map.of("id", user.getId())));
}