From 2bd46f80b4e2068b1c7757b7aeedf1b2da3f1f0d Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Mon, 13 Jul 2020 10:31:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=BB=BA=E7=94=A8=E6=88=B7=E6=97=B6?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E7=94=A8=E6=88=B7=E6=9D=A5=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/main/java/io/metersphere/service/UserService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/main/java/io/metersphere/service/UserService.java b/backend/src/main/java/io/metersphere/service/UserService.java index bc045d2267..eb3221c3f5 100644 --- a/backend/src/main/java/io/metersphere/service/UserService.java +++ b/backend/src/main/java/io/metersphere/service/UserService.java @@ -5,6 +5,7 @@ import io.metersphere.base.mapper.*; import io.metersphere.base.mapper.ext.ExtUserMapper; import io.metersphere.base.mapper.ext.ExtUserRoleMapper; import io.metersphere.commons.constants.RoleConstants; +import io.metersphere.commons.constants.UserSource; import io.metersphere.commons.constants.UserStatus; import io.metersphere.commons.exception.MSException; import io.metersphere.commons.user.SessionUser; @@ -137,6 +138,7 @@ public class UserService { user.setUpdateTime(System.currentTimeMillis()); // 默认1:启用状态 user.setStatus(UserStatus.NORMAL); + user.setSource(UserSource.Local.name()); // 密码使用 MD5 user.setPassword(CodingUtil.md5(user.getPassword())); UserExample userExample = new UserExample();