@Override public void changePassword(int userId, String newPassword) { User user = userDao.loadUser(userId); user.setPassword(newPassword); userDao.updateUser(user); logger.info("Password changed for - " + user.getFirstname()); }
@Override public User getUserInfo(int userId) { return userDao.loadUser(userId); }