/** @param newPassword */ @Override public void modifyPassword(Long userId, String newPassword) { String passwordWithSalt = SignUtils.createPassword(newPassword); User user = userDao.get(userId); user.setPassword(passwordWithSalt); userDao.update(user); }
/** * @param userId * @return */ @Override public User getUser(Long userId) { return userDao.get(userId); }