diff --git a/src/main/java/org/ntlab/citrusserver/resources/AccountsRest.java b/src/main/java/org/ntlab/citrusserver/resources/AccountsRest.java index b211755..f364b5d 100644 --- a/src/main/java/org/ntlab/citrusserver/resources/AccountsRest.java +++ b/src/main/java/org/ntlab/citrusserver/resources/AccountsRest.java @@ -50,8 +50,7 @@ var response = Response.status(Response.Status.NOT_FOUND).entity("IDが存在しません");//404 throw new WebApplicationException(response.build()); } - Account ac = accountManager.getAccount(accountId); - return ac; + return accountManager.getAccount(accountId); } // アカウント情報を全削除する(DELETE) @@ -85,6 +84,7 @@ @FormParam("token") String token){ if(accountManager.checkToken(accountId, token)) { accountManager.changePassword(accountId, newPassword, oldPassword, token); + return; } //404 @@ -114,6 +114,7 @@ @FormParam("token") String token){ if(accountManager.checkToken(accountId, token)) { accountManager.changeIntroduction(accountId, introduction, token); + return; } //404 if (!accountManager.getAccountsID().contains(accountId)){ //account_idが存在しない時