登录增加验证码切换
This commit is contained in:
2
.idea/inspectionProfiles/Project_Default.xml
generated
2
.idea/inspectionProfiles/Project_Default.xml
generated
@@ -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>
|
||||
@@ -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())));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user