This commit is contained in:
@@ -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() == "" {
|
||||
|
||||
Reference in New Issue
Block a user