Register default InstId

This commit is contained in:
MaxKey
2022-02-19 09:12:17 +08:00
parent 85ed0e7edc
commit 1e73605b30

View File

@@ -173,6 +173,7 @@ public class RegisterController {
password = passwordEncoder.encode(password );
userInfo.setPassword(password);
//default InstId
if(StringUtils.isEmpty(userInfo.getInstId())) {
userInfo.setInstId("1");
}
@@ -222,6 +223,10 @@ public class RegisterController {
if(temp!=null) {
return new Message(WebContext.getI18nValue("register.user.error"),"1");
}
//default InstId
if(StringUtils.isEmpty(userInfo.getInstId())) {
userInfo.setInstId("1");
}
userInfo.setStatus(ConstsStatus.ACTIVE);