diff --git a/manage/manager.go b/manage/manager.go index 5d6511d..b8fb01e 100755 --- a/manage/manager.go +++ b/manage/manager.go @@ -261,7 +261,7 @@ func (m *Manager) GenerateAccessToken(ctx context.Context, gt oauth2.GrantType, if !cliPass.VerifyPassword(tgr.ClientSecret) { return nil, errors.ErrInvalidClient } - } else if len(tgr.ClientSecret) > 0 && tgr.ClientSecret != cli.GetSecret() { + } else if len(cli.GetSecret()) > 0 && tgr.ClientSecret != cli.GetSecret() { return nil, errors.ErrInvalidClient } if tgr.RedirectURI != "" {