Merge pull request #8 from wolf0931/master

修改添加用户不能登录问题
This commit is contained in:
shuzheng 2017-03-03 17:56:38 +08:00 committed by GitHub
commit a6e0c951ec
1 changed files with 1 additions and 1 deletions

View File

@ -195,8 +195,8 @@ public class UpmsUserController extends BaseController {
}
long time = System.currentTimeMillis();
String salt = UUID.randomUUID().toString().replaceAll("-", "");
upmsUser.setPassword(MD5Util.MD5(upmsUser.getPassword() + upmsUser.getSalt()));
upmsUser.setSalt(salt);
upmsUser.setPassword(MD5Util.MD5(upmsUser.getPassword() + upmsUser.getSalt()));
upmsUser.setCtime(time);
int count = upmsUserService.insertSelective(upmsUser);
return new UpmsResult(UpmsResultConstant.SUCCESS, count);