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 0c579ea..c74bc2f 100644 --- a/src/main/java/com/example/cosmos_serversb/models/Users.java +++ b/src/main/java/com/example/cosmos_serversb/models/Users.java @@ -64,7 +64,7 @@ List usersList = session.createQuery( "from User" ).list(); List passwordList = session.createQuery("from Password").list(); for ( User user : (List) usersList ) { - if (user.getuId().equals(uId)) { //if (user.getuId().equals(uId) || password.getPw().equals(pw)) { + if (user.getuId().equals(uId)) {//if (user.getuId().equals(uId) || password.getPw().equals(pw)) { user.setName(name); for ( Password password : (List) passwordList ) { password.setPw(pw);