NCBACK-9 work controller for register
Test Workflow / test (push) Successful in 7s

This commit is contained in:
vladp
2025-12-10 04:22:09 +07:00
parent c2ffe08e7d
commit b5b8bebb69
3 changed files with 256 additions and 30 deletions
@@ -25,14 +25,6 @@ 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("/login")
public ResponseEntity<LoginResponse> login(@Valid @RequestBody LoginRequest request) {
AuthToken login = authService.login(request);