NCBACK-9 add Validator,Add new enums with codes
Test Workflow / test (push) Successful in 3s

This commit is contained in:
vladp
2025-12-10 02:37:31 +07:00
parent 92d0cbbf3b
commit c2ffe08e7d
11 changed files with 327 additions and 27 deletions
@@ -25,13 +25,13 @@ public class AuthController {
private final AuthTokenRepository authTokenRepository;
@PostMapping("/register")
public ResponseEntity<AuthResponse> register(@Valid @RequestBody RegisterRequest registerRequest) {
AuthToken authToken = authService.register(registerRequest);
return ResponseEntity.ok(new AuthResponse(true, "success.user.register", authToken.getToken(),
authToken.getExpiresAt()));
}
// @PostMapping("/register")
// public ResponseEntity<AuthResponse> register(@Valid @RequestBody RegisterRequest registerRequest) {
// AuthToken authToken = authService.register(registerRequest);
//
// return ResponseEntity.ok(new AuthResponse(true, "success.user.register", authToken.getToken(),
// authToken.getExpiresAt()));
// }
@PostMapping("/login")
public ResponseEntity<LoginResponse> login(@Valid @RequestBody LoginRequest request) {