- fk
This commit is contained in:
@@ -177,7 +177,7 @@ func Login(authType, authID, authIDType, authSecret string) (authInfo *AuthInfo,
|
||||
if handler := authers[authType]; handler != nil {
|
||||
var authBind *model.AuthBind
|
||||
var user IUser
|
||||
realauthID := authID
|
||||
realAuthID := authID
|
||||
if authIDType == AuthTypePassword {
|
||||
if authID == "" {
|
||||
return nil, ErrInvalidParams
|
||||
@@ -185,9 +185,9 @@ func Login(authType, authID, authIDType, authSecret string) (authInfo *AuthInfo,
|
||||
if user = userProvider.GetUser(authID, authIDType); user == nil {
|
||||
return nil, ErrUserNotExist
|
||||
}
|
||||
realauthID = user.GetID()
|
||||
realAuthID = user.GetID()
|
||||
}
|
||||
if authBind, err = handler.VerifySecret(realauthID, authSecret); err == nil {
|
||||
if authBind, err = handler.VerifySecret(realAuthID, authSecret); err == nil {
|
||||
if authBind == nil { // mobile, email会返回nil(表示不会新建AuthBind实体)
|
||||
user = userProvider.GetUser(authID, authIDType)
|
||||
authBind = &model.AuthBind{
|
||||
|
||||
Reference in New Issue
Block a user