mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
parent
b98876e265
commit
881b32521b
1 changed files with 6 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue