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.
This commit is contained in:
Tim Abbott 2019-08-26 19:56:51 -07:00
parent c037ba49a0
commit a43b231f90
1 changed files with 7 additions and 0 deletions

View File

@ -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'),