HttpCreds: Update app passwords url #5605

See also owncloud/core#27360
This commit is contained in:
Christian Kamm 2017-03-14 15:59:22 +01:00 committed by Markus Goetz
parent b98876e265
commit 881b32521b

View file

@ -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("<a href=\"%1\">Click here</a> to request an app password from the web interface.")
.arg(account->url().toString() + path);
}