Build a webflowcredentials

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2019-08-26 20:04:23 +02:00
parent fd8345ccbe
commit 50cd6af394
No known key found for this signature in database
GPG key ID: F941078878347C0C

View file

@ -23,8 +23,8 @@
#include "cookiejar.h" #include "cookiejar.h"
#include "wizard/owncloudwizardcommon.h" #include "wizard/owncloudwizardcommon.h"
#include "wizard/owncloudwizard.h" #include "wizard/owncloudwizard.h"
#include "creds/httpcredentialsgui.h"
#include "creds/credentialsfactory.h" #include "creds/credentialsfactory.h"
#include "creds/webflowcredentials.h"
namespace OCC { namespace OCC {
@ -132,8 +132,12 @@ AbstractCredentials *Flow2AuthCredsPage::getCredentials() const
{ {
OwncloudWizard *ocWizard = qobject_cast<OwncloudWizard *>(wizard()); OwncloudWizard *ocWizard = qobject_cast<OwncloudWizard *>(wizard());
Q_ASSERT(ocWizard); Q_ASSERT(ocWizard);
return new HttpCredentialsGui(_user, _appPassword, QString(), return new WebFlowCredentials(
ocWizard->_clientSslCertificate, ocWizard->_clientSslKey); _user,
_appPassword,
ocWizard->_clientSslCertificate,
ocWizard->_clientSslKey
);
} }
bool Flow2AuthCredsPage::isComplete() const bool Flow2AuthCredsPage::isComplete() const