This commit is contained in:
苏尹岚
2020-11-12 17:12:33 +08:00
parent bdb7c8a3f3
commit 01d9af671d
2 changed files with 4 additions and 4 deletions

View File

@@ -213,7 +213,7 @@ func GetUserBindAuthInfo(ctx *jxcontext.Context) (authList []*model.AuthBind, er
func CreateUser(user *model.User, creatorName string) (err error) {
globals.SugarLogger.Debugf("CreateUser user:%s, creatorName:%s", utils.Format4Output(user, true), creatorName)
if user == nil || user.UserID2 == "" {
if user == nil || user.UserID2 == "" || user.Name == "" {
return ErrUserIDAndNameMustGiven
}
if user.GetMobile() == "" {