test登录
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"bytes"
|
||||
"encoding/base64"
|
||||
"errors"
|
||||
"fmt"
|
||||
"regexp"
|
||||
"strings"
|
||||
"time"
|
||||
@@ -295,6 +296,7 @@ func LoginInternal(ctx *Context, authType, authID, authIDType, authSecret string
|
||||
} else {
|
||||
err = ErrIllegalAuthType
|
||||
}
|
||||
fmt.Println("testaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", utils.Format4Output(authInfo, false))
|
||||
return authInfo, err
|
||||
}
|
||||
|
||||
|
||||
@@ -211,7 +211,6 @@ func RegisterUserWithMobile(ctx *jxcontext.Context, user *model.User, mobileVeri
|
||||
userProvider.UpdateLastLogin(user.GetID(), authType, ctx.GetRealRemoteIP())
|
||||
TryAddStoreBossRole4User(ctx, user)
|
||||
if mobileAuth != nil {
|
||||
fmt.Println("test111111111111111111111111111111111111", utils.Format4Output(user, false))
|
||||
if outAuthInfo, err = auth2.BindUser(mobileAuth, user); err == nil && inAuthInfo != nil {
|
||||
err = auth2.AddAuthBind(&outAuthInfo.UserBasic, inAuthInfo)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user