Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
faad7895e9
|
@ -5,6 +5,7 @@ import io.metersphere.base.mapper.*;
|
||||||
import io.metersphere.base.mapper.ext.ExtUserMapper;
|
import io.metersphere.base.mapper.ext.ExtUserMapper;
|
||||||
import io.metersphere.base.mapper.ext.ExtUserRoleMapper;
|
import io.metersphere.base.mapper.ext.ExtUserRoleMapper;
|
||||||
import io.metersphere.commons.constants.RoleConstants;
|
import io.metersphere.commons.constants.RoleConstants;
|
||||||
|
import io.metersphere.commons.constants.UserSource;
|
||||||
import io.metersphere.commons.constants.UserStatus;
|
import io.metersphere.commons.constants.UserStatus;
|
||||||
import io.metersphere.commons.exception.MSException;
|
import io.metersphere.commons.exception.MSException;
|
||||||
import io.metersphere.commons.user.SessionUser;
|
import io.metersphere.commons.user.SessionUser;
|
||||||
|
@ -137,6 +138,7 @@ public class UserService {
|
||||||
user.setUpdateTime(System.currentTimeMillis());
|
user.setUpdateTime(System.currentTimeMillis());
|
||||||
// 默认1:启用状态
|
// 默认1:启用状态
|
||||||
user.setStatus(UserStatus.NORMAL);
|
user.setStatus(UserStatus.NORMAL);
|
||||||
|
user.setSource(UserSource.Local.name());
|
||||||
// 密码使用 MD5
|
// 密码使用 MD5
|
||||||
user.setPassword(CodingUtil.md5(user.getPassword()));
|
user.setPassword(CodingUtil.md5(user.getPassword()));
|
||||||
UserExample userExample = new UserExample();
|
UserExample userExample = new UserExample();
|
||||||
|
|
|
@ -1 +1,3 @@
|
||||||
alter table user add source varchar(50) null;
|
alter table user add source varchar(50) null;
|
||||||
|
|
||||||
|
update user set source = 'Local' where source is null;
|
Loading…
Reference in New Issue