From 881b32521b6aab2bdb73353175e7e2f666447747 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Tue, 14 Mar 2017 15:59:22 +0100 Subject: [PATCH] HttpCreds: Update app passwords url #5605 See also owncloud/core#27360 --- src/gui/creds/httpcredentialsgui.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gui/creds/httpcredentialsgui.cpp b/src/gui/creds/httpcredentialsgui.cpp index 26ad6ec8b..8eb5c40ee 100644 --- a/src/gui/creds/httpcredentialsgui.cpp +++ b/src/gui/creds/httpcredentialsgui.cpp @@ -75,7 +75,12 @@ QString HttpCredentialsGui::requestAppPasswordText(const Account* account) return QString(); } - QString path = QLatin1String("/index.php/settings/personal?section=apppasswords"); + QString path; + if (account->serverVersionInt() < Account::makeServerVersion(10, 0, 0)) { + path = QLatin1String("/index.php/settings/personal?section=apppasswords"); + } else { + path = QLatin1String("/index.php/settings/personal?sectionid=security#apppasswords"); + } return tr("Click here to request an app password from the web interface.") .arg(account->url().toString() + path); } -- 2.39.5