wangning 7 years ago
parent ad570266df
commit d9a801b431

@ -243,8 +243,8 @@ public class SimpleClientApplyServiceImpl implements SimpleClientApplyService {
JSONObject apply = sysClientPreMapperMapper.findByUserName(username); JSONObject apply = sysClientPreMapperMapper.findByUserName(username);
String salt = PasswordUtils.newSalt(); String salt = PasswordUtils.newSalt();
applyInfo.put("salt", salt); applyInfo.put("salt", salt);
applyInfo.put("password_hash", PasswordUtils.hashPwd(apply.getString("password"), salt)); applyInfo.put("password_hash", PasswordUtils.hashPwd(applyInfo.getString("password"), salt));
applyInfo.put("password_aes", PasswordUtils.encryptAESPwd(apply.getString("password"))); applyInfo.put("password_aes", PasswordUtils.encryptAESPwd(applyInfo.getString("password")));
if (apply == null) { if (apply == null) {
sysClientPreMapperMapper.save(applyInfo); sysClientPreMapperMapper.save(applyInfo);
} else { } else {

Loading…
Cancel
Save