File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
spring-boot-backend/src/main/java/com/example/springbootbackend/controller Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ public AccountResponseDTO createAccount(@RequestBody SignupRequestDTO signupRequ
46
46
47
47
@ GetMapping ("/confirm-account" )
48
48
public ResponseEntity <String > confirmAccount (@ RequestParam ("token" ) String token ) {
49
+ log .info ("Handling GET /auth/confirm-account request with token: {}" , token );
49
50
if (!tokenService .validateConfirmationToken (token )) {
50
51
return ResponseEntity .status (HttpStatus .BAD_REQUEST ).body ("Invalid or expired token." );
51
52
}
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ const ConfirmationPage = () => {
24
24
navigate ( '/login' ) ;
25
25
} catch ( error ) {
26
26
console . error ( 'Failed to confirm account:' , error ) ;
27
- toast . error ( 'Failed to confirm account.' ) ;
27
+ toast . error ( 'Failed to confirm account: ' , error ) ;
28
28
setSuccess ( false ) ;
29
29
} finally {
30
30
setIsLoading ( false ) ;
You can’t perform that action at this time.
0 commit comments