mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-05-25 03:57:40 +08:00
fix: google login problem
This commit is contained in:
@@ -116,6 +116,8 @@ public class AuthController {
|
|||||||
"reason_code", "NOT_APPROVED"
|
"reason_code", "NOT_APPROVED"
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return ResponseEntity.ok(Map.of("token", jwtService.generateToken(user.get().getUsername())));
|
||||||
}
|
}
|
||||||
return ResponseEntity.badRequest().body(Map.of(
|
return ResponseEntity.badRequest().body(Map.of(
|
||||||
"error", "Invalid google token",
|
"error", "Invalid google token",
|
||||||
|
|||||||
Reference in New Issue
Block a user