修正初始化脚本用户密码初始化加密2次的问题。

This commit is contained in:
thinkgem
2018-05-30 22:57:21 +08:00
parent 4b76a942cd
commit 131e0332e0
2 changed files with 9 additions and 2 deletions

View File

@@ -257,7 +257,6 @@ public class InitCoreData extends BaseInitDataTests {
if("save".equals(action)){
User entity = (User)params[1];
entity.setIsNewRecord(true);
entity.setPassword(UserService.encryptPassword(entity.getPassword()));
userService.save(entity);
return null;
}