diff --git a/business/auth2/auth2.go b/business/auth2/auth2.go index 1c196a550..f3f340cc9 100644 --- a/business/auth2/auth2.go +++ b/business/auth2/auth2.go @@ -178,7 +178,7 @@ func Login(authType, authID, authIDType, authSecret string) (authInfo *AuthInfo, var authBind *model.AuthBind var user IUser realAuthID := authID - if authIDType == AuthTypePassword { + if authType == AuthTypePassword { if authID == "" { return nil, ErrInvalidParams }