From a43b231f90705a5704fbf178b4fc4e4ac36a2c92 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Mon, 26 Aug 2019 19:56:51 -0700 Subject: [PATCH] urls: Add backwards-compatibility URL for mobile Google login. In bf14a0af4, we refactored the Google authentication system to use the same code as GitHub auth, but neglected to provide a backwards-compatible URL available for use by older versions of the mobile apps. Fixes #13081. --- zproject/urls.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/zproject/urls.py b/zproject/urls.py index cbfc02ed9d..982b36d3f0 100644 --- a/zproject/urls.py +++ b/zproject/urls.py @@ -423,6 +423,13 @@ i18n_urls = [ url(r'^accounts/login/jwt/$', zerver.views.auth.remote_user_jwt, name='login-jwt'), url(r'^accounts/login/social/([\w,-]+)$', zerver.views.auth.start_social_login, name='login-social'), + # Backwards-compatibility (legacy) Google auth URL for the mobile + # apps; see https://github.com/zulip/zulip/issues/13081 for + # background. We can remove this once older versions of the + # mobile app are no longer present in the wild. + url(r'^accounts/login/(google)/$', zerver.views.auth.start_social_login, + name='login-social'), + url(r'^accounts/register/social/([\w,-]+)$', zerver.views.auth.start_social_signup, name='signup-social'),