From 14fb79ab1ba40303fce67a540fa781a3724d1d4d Mon Sep 17 00:00:00 2001 From: MaxKey Date: Sat, 25 Dec 2021 07:29:03 +0800 Subject: [PATCH] Update RegistrationController.java --- .../java/org/maxkey/web/contorller/RegistrationController.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/maxkey-webs/maxkey-web-maxkey/src/main/java/org/maxkey/web/contorller/RegistrationController.java b/maxkey-webs/maxkey-web-maxkey/src/main/java/org/maxkey/web/contorller/RegistrationController.java index c8184fc72..075202517 100644 --- a/maxkey-webs/maxkey-web-maxkey/src/main/java/org/maxkey/web/contorller/RegistrationController.java +++ b/maxkey-webs/maxkey-web-maxkey/src/main/java/org/maxkey/web/contorller/RegistrationController.java @@ -167,6 +167,9 @@ public class RegistrationController { password = passwordEncoder.encode(password ); userInfo.setPassword(password); + if(StringUtils.isEmpty(userInfo.getInstId())) { + userInfo.setInstId("1"); + } userInfo.setPasswordLastSetTime(DateUtils.format(new Date(), DateUtils.FORMAT_DATE_YYYY_MM_DD_HH_MM_SS)); userInfoService.insert(userInfo);