private void fillPortraitPathToUser(String userName) { user.setPortraitPath( PORTRAIT_FOLDER + CodeUtil.md5(userName) + portraitFileName.substring(portraitFileName.indexOf('.'))); }
static User md5Password(User user) { user.setPassword(CodeUtil.md5(user.getPassword())); return user; }