diff --git a/src/main/java/org/ntlab/citrusserver/resources/AccountsRest.java b/src/main/java/org/ntlab/citrusserver/resources/AccountsRest.java index 2eb5ccd..edc0e1a 100644 --- a/src/main/java/org/ntlab/citrusserver/resources/AccountsRest.java +++ b/src/main/java/org/ntlab/citrusserver/resources/AccountsRest.java @@ -131,7 +131,7 @@ @FormParam("new_password")String newPassword, @FormParam("old_password")String oldPassword, @FormParam("token") String token){ - if(!accountManager.getAccount(accountId).equals(oldPassword)) { + if(!accountManager.getAccount(accountId).getPassword().equals(oldPassword)) { var response = Response.status(Response.Status.BAD_REQUEST).entity("パスワードが違います");//404 throw new WebApplicationException(response.build()); }