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