From 5d0b5ec360edf223399db5bd9a14146c07e871a0 Mon Sep 17 00:00:00 2001 From: gazebo Date: Tue, 5 Mar 2019 11:50:49 +0800 Subject: [PATCH] - fk --- business/auth2/auth2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }