Пример #1
0
 private void fillPortraitPathToUser(String userName) {
   user.setPortraitPath(
       PORTRAIT_FOLDER
           + CodeUtil.md5(userName)
           + portraitFileName.substring(portraitFileName.indexOf('.')));
 }
Пример #2
0
 static User md5Password(User user) {
   user.setPassword(CodeUtil.md5(user.getPassword()));
   return user;
 }