Always use the dummy crendential while trying to determine the credentials

Otherwise the SHibbolethCredential may be set and it has hook to intercept 401

This should fix issue #1908
This commit is contained in:
Olivier Goffart 2014-07-23 14:38:50 +02:00
parent beb9300b4e
commit 1d9d88ca85

View file

@ -144,6 +144,8 @@ void OwncloudSetupWizard::slotDetermineAuthType(const QString &urlString)
}
Account *account = _ocWizard->account();
account->setUrl(url);
// Set fake credentials beforfe we check what credidential it actually is.
account->setCredentials(CredentialsFactory::create("dummy"));
CheckServerJob *job = new CheckServerJob(_ocWizard->account(), false, this);
job->setIgnoreCredentialFailure(true);
connect(job, SIGNAL(instanceFound(QUrl,QVariantMap)), SLOT(slotOwnCloudFoundAuth(QUrl,QVariantMap)));