diff --git a/src/main/java/com/example/cosmos_serversb/models/Users.java b/src/main/java/com/example/cosmos_serversb/models/Users.java index e85b1de..1fc7e18 100644 --- a/src/main/java/com/example/cosmos_serversb/models/Users.java +++ b/src/main/java/com/example/cosmos_serversb/models/Users.java @@ -165,6 +165,7 @@ } deleteUser.groups.clear(); session.delete(session.get(Password.class, uId)); //パスワードの削除 + session.delete(session.get(Token.class, token)); //tokenの削除(応急処置) for(Token deleteToken : deleteUser.getTokens()){ session.delete(deleteToken); //tokenの削除 }