Because a previous call with another demain might have set some
config for another server.
Issue #6832
// Reset the proxy which might had been determined previously in ConnectionValidator::checkServerAndAuth()
// when there was a previous account.
account->networkAccessManager()->setProxy(QNetworkProxy(QNetworkProxy::NoProxy));
+ // And also reset the QSslConfiguration, for the same reason (#6832)
+ account->setSslConfiguration({});
// Lookup system proxy in a thread https://github.com/owncloud/client/issues/2993
if (ClientProxy::isUsingSystemDefault()) {