This is an automated email from the ASF dual-hosted git repository. morningman pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/doris-manager.git
The following commit(s) were added to refs/heads/master by this push: new 6b76b42 [fix]There is a set of built-in account passwords (#63) 6b76b42 is described below commit 6b76b425a5752058fb828fe6a04057a63d210399 Author: jiafeng.zhang <zhang...@gmail.com> AuthorDate: Fri Nov 11 16:06:22 2022 +0800 [fix]There is a set of built-in account passwords (#63) --- .../doris/stack/service/user/AuthenticationService.java | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/manager/general/src/main/java/org/apache/doris/stack/service/user/AuthenticationService.java b/manager/general/src/main/java/org/apache/doris/stack/service/user/AuthenticationService.java index bf74db9..17f56db 100644 --- a/manager/general/src/main/java/org/apache/doris/stack/service/user/AuthenticationService.java +++ b/manager/general/src/main/java/org/apache/doris/stack/service/user/AuthenticationService.java @@ -98,8 +98,8 @@ import java.util.stream.Collectors; @Slf4j public class AuthenticationService extends BaseService { - private static final String BUILT_IN_USERNAME = "b...@studio.com"; - public static String builtInPassword = "studio@123"; + private static final String BUILT_IN_USERNAME = ""; + public static String builtInPassword = ""; private static StringBuffer mapString; // Name of cookie @@ -361,16 +361,6 @@ public class AuthenticationService extends BaseService { // user id int userId; - // check built in user and password - if (username.matches(BUILT_IN_USERNAME) && loginReq.getPassword().equals(builtInPassword)) { - String sessionId = UuidUtil.newUuid(); - - CoreSessionEntity sessionEntity = new CoreSessionEntity(sessionId, -1, - new Timestamp(System.currentTimeMillis()), null); - sessionRepository.save(sessionEntity); - return sessionId; - } - List<CoreUserEntity> coreUserEntities; // login by first name or email if (username.matches(EMAIL_REGEX)) { --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org