Improve user-related strings in webflow credentials
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Thu, 6 Oct 2022 14:38:49 +0000 (16:38 +0200)
committerClaudio Cambra <claudio.cambra@nextcloud.com>
Wed, 19 Oct 2022 11:31:34 +0000 (13:31 +0200)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/gui/creds/webflowcredentials.cpp

index 278d81b94cc186065936cf09c56036fcb28c6a84..b2e28dafd82e065f283bdea934c3c663c8d0605e 100644 (file)
@@ -164,7 +164,7 @@ void WebFlowCredentials::askFromUser() {
         }
 
         QString msg = tr("You have been logged out of your account %1 at %2. Please login again.")
-                          .arg(_user, _account->displayName());
+                          .arg(_account->davUser(), _account->url().toDisplayString());
         _askDialog->setInfo(msg);
 
         _askDialog->show();
@@ -188,7 +188,7 @@ void WebFlowCredentials::slotAskFromUserCredentialsProvided(const QString &user,
         qCInfo(lcWebFlowCredentials()) << "Authed with the wrong user!";
 
         QString msg = tr("Please login with the account: %1")
-                .arg(_user);
+                .arg(_account->davUser());
         _askDialog->setError(msg);
 
         if (!_askDialog->isUsingFlow2()) {