diff --git a/src/main/java/org/ntlab/citrusserver/resources/AccountsRest.java b/src/main/java/org/ntlab/citrusserver/resources/AccountsRest.java index c4bbb83..2a74ab0 100644 --- a/src/main/java/org/ntlab/citrusserver/resources/AccountsRest.java +++ b/src/main/java/org/ntlab/citrusserver/resources/AccountsRest.java @@ -47,7 +47,7 @@ var response = Response.status(Response.Status.CONFLICT).entity("id '" + accountId + "' は既に存在します");//404 throw new WebApplicationException(response.build()); } - return token; + return "\"" + token +"\""; } // 指定されたアカウントの情報を返す(GET) @@ -169,7 +169,7 @@ var response = Response.status(Response.Status.NOT_FOUND).entity("IDが存在しません");//404 throw new WebApplicationException(response.build()); } - return accountManager.login(accountId, password); + return "\""+ accountManager.login(accountId, password)+"\""; } }