This commit is contained in:
gazebo
2019-03-05 11:50:49 +08:00
parent f925049983
commit 5d0b5ec360

View File

@@ -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
}