This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user