Skip to content

Commit

Permalink
Fix invalidly called OAuth2 authorization code flow constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Bionus committed Jul 13, 2022
1 parent 65d9aeb commit bda40fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/src/login/oauth2-login.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ void OAuth2Login::loginAuthorizationCode()
}

auto *manager = new SiteNetworkAccessManager(m_site, this);
auto *flow = new QOAuth2AuthorizationCodeFlow(consumerKey, consumerSecret, manager, this);
auto *flow = new QOAuth2AuthorizationCodeFlow(manager, this);
flow->setClientIdentifier(consumerKey);
flow->setAuthorizationUrl(m_site->fixUrl(m_auth->authorizationUrl()));
flow->setAccessTokenUrl(m_site->fixUrl(m_auth->tokenUrl()));

Expand Down

0 comments on commit bda40fc

Please sign in to comment.