fixed a mistake
This commit is contained in:
parent
26e98f3db4
commit
da75fbb922
@ -297,8 +297,9 @@ public class Controller {
|
|||||||
|
|
||||||
|
|
||||||
// try {
|
// try {
|
||||||
|
// String userString = (String) claims.get("user");
|
||||||
// JSONParser parser = new JSONParser();
|
// JSONParser parser = new JSONParser();
|
||||||
// JSONObject userObject = (JSONObject) parser.parse(token);
|
// JSONObject userObject = (JSONObject) parser.parse(userString);
|
||||||
// int userID = (Integer) userObject.get("userID");
|
// int userID = (Integer) userObject.get("userID");
|
||||||
// Optional<User> userOptional = userRepository.findById(userID);
|
// Optional<User> userOptional = userRepository.findById(userID);
|
||||||
// if (userOptional.isPresent()) {
|
// if (userOptional.isPresent()) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user