summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorSzymon Kłos <eszkadev@gmail.com>2015-07-02 11:24:39 +0200
committerAndras Timar <andras.timar@collabora.com>2015-08-06 12:55:44 +0200
commit4a2e982f575bc098f90464dd3db72aaf2ddab924 (patch)
treee17fb29e35ab1ba78e381750bbcbe2fb0cf83ad3 /ucb
parent99e256f3b6d4eda1bf7452b753cdf2a28adaddcb (diff)
tdf#84190 : when auth fails, don't remember passwords for cmis
Change-Id: Ia1e0d553556693e0efa6de0bfc6f8b0ae9d40b5d Reviewed-on: https://gerrit.libreoffice.org/16688 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/cmis/auth_provider.cxx2
-rw-r--r--ucb/source/ucp/cmis/cmis_content.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/ucb/source/ucp/cmis/auth_provider.cxx b/ucb/source/ucp/cmis/auth_provider.cxx
index 97414f19e864..500b601b7179 100644
--- a/ucb/source/ucp/cmis/auth_provider.cxx
+++ b/ucb/source/ucp/cmis/auth_provider.cxx
@@ -38,7 +38,7 @@ namespace cmis
m_sUrl, m_sBindingUrl, OUString(),
STD_TO_OUSTR( username ),
STD_TO_OUSTR( password ),
- OUString(), true, false );
+ OUString(), true, false, false );
xIH->handle( xRequest.get() );
rtl::Reference< ucbhelper::InteractionContinuation > xSelection
diff --git a/ucb/source/ucp/cmis/cmis_content.cxx b/ucb/source/ucp/cmis/cmis_content.cxx
index b54c246b047e..34f5b9f8018b 100644
--- a/ucb/source/ucp/cmis/cmis_content.cxx
+++ b/ucb/source/ucp/cmis/cmis_content.cxx
@@ -362,7 +362,6 @@ namespace cmis
ONEDRIVE_SCOPE, ONEDRIVE_REDIRECT_URI,
ONEDRIVE_CLIENT_ID, ONEDRIVE_CLIENT_SECRET ) );
}
-
m_pSession = libcmis::SessionFactory::createSession(
OUSTR_TO_STDSTR( m_aURL.getBindingUrl( ) ),
rUsername, rPassword, OUSTR_TO_STDSTR( m_aURL.getRepositoryId( ) ), false, oauth2Data );
@@ -372,7 +371,8 @@ namespace cmis
uno::Sequence< uno::Any >( 0 ),
xEnv,
OUString( ) );
- m_pProvider->registerSession( sSessionId, m_pSession );
+ else
+ m_pProvider->registerSession( sSessionId, m_pSession );
}
else
{