mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-25 22:46:04 +03:00
Build a webflowcredentials
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
fd8345ccbe
commit
50cd6af394
1 changed files with 7 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue