mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
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:
@@ -423,6 +423,13 @@ i18n_urls = [
|
|||||||
url(r'^accounts/login/jwt/$', zerver.views.auth.remote_user_jwt, name='login-jwt'),
|
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,
|
url(r'^accounts/login/social/([\w,-]+)$', zerver.views.auth.start_social_login,
|
||||||
name='login-social'),
|
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,-]+)$',
|
url(r'^accounts/register/social/([\w,-]+)$',
|
||||||
zerver.views.auth.start_social_signup,
|
zerver.views.auth.start_social_signup,
|
||||||
name='signup-social'),
|
name='signup-social'),
|
||||||
|
|||||||
Reference in New Issue
Block a user