]> dgit.raspbian.org Git - nextcloud-desktop.git/commitdiff
Shibboleth: Load username from config for UI (#4751)
authorMarkus Goetz <markus@woboq.com>
Thu, 28 Apr 2016 12:55:29 +0000 (14:55 +0200)
committerMarkus Goetz <markus@woboq.com>
Thu, 28 Apr 2016 12:55:29 +0000 (14:55 +0200)
For https://github.com/owncloud/enterprise/issues/1034

src/gui/creds/shibbolethcredentials.cpp

index 536315e3cf75175cb45f29ca459503dbcbc63694..21574ddcb1ddc621edf977c0679d96e3edafe843 100644 (file)
@@ -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()));
     }