From 29932004ae3bc7eb938a2cec1aa2dc9890a7d5f9 Mon Sep 17 00:00:00 2001 From: Markus Goetz Date: Thu, 28 Apr 2016 14:55:29 +0200 Subject: [PATCH] Shibboleth: Load username from config for UI (#4751) For https://github.com/owncloud/enterprise/issues/1034 --- src/gui/creds/shibbolethcredentials.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gui/creds/shibbolethcredentials.cpp b/src/gui/creds/shibbolethcredentials.cpp index 536315e3c..21574ddcb 100644 --- a/src/gui/creds/shibbolethcredentials.cpp +++ b/src/gui/creds/shibbolethcredentials.cpp @@ -67,8 +67,13 @@ void ShibbolethCredentials::setAccount(Account* account) { AbstractCredentials::setAccount(account); + // This is for existing saved accounts. + if (_user.isEmpty()) { + _user = _account->credentialSetting(QLatin1String(userC)).toString(); + } + // When constructed with a cookie (by the wizard), we usually don't know the - // user name yet. Request it now. + // user name yet. Request it now from the server. if (_ready && _user.isEmpty()) { QTimer::singleShot(1234, this, SLOT(slotFetchUser())); } -- 2.39.5