Commit 56bc1b68 authored by Nicolas Fella's avatar Nicolas Fella

[nextcloud] Set user-friendly user agent for login request

The user agent shows up in the UI as "Do you want to authorize XXX", so display something nicer.
parent 14755bae
......@@ -27,7 +27,7 @@ NextcloudController::NextcloudController(QObject *parent)
, m_webengineProfile(new QQuickWebEngineProfile(this))
{
m_webengineProfile->setUrlRequestInterceptor(&m_urlIntercepter);
m_webengineProfile->setHttpUserAgent(QStringLiteral("Mozilla/5.0 nextcloud-ui-plugin"));
m_webengineProfile->setHttpUserAgent(QStringLiteral("KAccounts Nextcloud Login"));
QDesktopServices::setUrlHandler("nc", this, "finalUrlHandler");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment