Beispiel #1
0
  /** @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);
  }
Beispiel #2
0
  /**
   * @param userId
   * @return
   */
  @Override
  public User getUser(Long userId) {

    return userDao.get(userId);
  }