aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kahles <[email protected]>2018-01-12 15:23:53 +0100
committerDavid Kahles <[email protected]>2018-01-13 13:30:42 +0100
commit2980ace5fc69f900432f18481397c5498dcc4bb1 (patch)
treed1129797dc8723419f665baa8a12a8c90942f080
parent4f2db16cc2d5ea80c6bbefe9ade22ec5e4359623 (diff)
Fix token page URL
Summary: It seems like Google changed the URL of the token page. Maybe we should use QString::startsWith, to be futureproof? BUG: 388483 Test Plan: - Login in KOrganizer and KMail works again - All tests pass (though i think there is no oauth2 test) Reviewers: dvratil, mlaurent Reviewed By: mlaurent Differential Revision: https://phabricator.kde.org/D9843
-rw-r--r--src/core/ui/authwidget_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ui/authwidget_p.h b/src/core/ui/authwidget_p.h
index 78b0e7f..29ece44 100644
--- a/src/core/ui/authwidget_p.h
+++ b/src/core/ui/authwidget_p.h
@@ -79,7 +79,7 @@ class Q_DECL_HIDDEN AuthWidgetPrivate: public QObject {
bool isSigninPage(const QUrl &url) const { return url.path() == QLatin1String("/signin/oauth"); }
bool isUsernameFrame(const QUrl &url) { return url.path() == QLatin1String("/signin/oauth/identifier"); }
bool isPasswordFrame(const QUrl &url) { return url.path() == QLatin1String("/signin/v2/challenge/pwd"); }
- bool isTokenPage(const QUrl &url) { return url.path() == QLatin1String("/o/oauth2/approval/v2"); }
+ bool isTokenPage(const QUrl &url) { return url.path() == QLatin1String("/o/oauth2/approval/v2/approvalnativeapp"); }
void setSslIcon(const QString &icon);