Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2022-05-13 15:39:12 +0300
committerHannah von Reth <vonreth@kde.org>2022-05-17 11:53:33 +0300
commitb7d69f0db6db0ae15513cf73281d5fa8dceaf062 (patch)
tree68435cb39c3e05e0e0579d839c02ebdad71128ae /src/gui/creds
parent9751b49032e6e049cea8875c172947ed44531ab0 (diff)
Remove version checks for < 10.0
Diffstat (limited to 'src/gui/creds')
-rw-r--r--src/gui/creds/httpcredentialsgui.cpp15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/gui/creds/httpcredentialsgui.cpp b/src/gui/creds/httpcredentialsgui.cpp
index c825ef506..af90c67e9 100644
--- a/src/gui/creds/httpcredentialsgui.cpp
+++ b/src/gui/creds/httpcredentialsgui.cpp
@@ -160,23 +160,10 @@ void HttpCredentialsGui::showDialog()
QString HttpCredentialsGui::requestAppPasswordText(const Account *account)
{
- int version = account->serverVersionInt();
- QString path;
-
- // Version may not be available before login on new servers!
- if (!version || version >= Account::makeServerVersion(10, 0, 0)) {
- path = QLatin1String("/index.php/settings/personal?sectionid=security#apppasswords");
- } else if (version >= Account::makeServerVersion(9, 1, 0)) {
- path = QLatin1String("/index.php/settings/personal?section=apppasswords");
- } else {
- // Older server than 9.1 does not have the feature to request App Password
- return QString();
- }
-
auto baseUrl = account->url().toString();
if (baseUrl.endsWith('/'))
baseUrl.chop(1);
return tr("<a href=\"%1\">Click here</a> to request an app password from the web interface.")
- .arg(baseUrl + path);
+ .arg(Utility::concatUrlPath(baseUrl, QStringLiteral("/index.php/settings/personal?sectionid=security#apppasswords")).toString());
}
} // namespace OCC