mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
views: Move some login code from registration to auth.
Most of these have more to do with authentication in general than with registering a new account. `create_preregistration_user` could go either way; we move it to `auth` so we can make the imports go only in one direction.
This commit is contained in:
@@ -193,8 +193,8 @@ class SocialAuthMixin(ZulipAuthMixin):
|
||||
# These functions need to be imported here to avoid cyclic
|
||||
# dependency.
|
||||
from zerver.views.auth import (login_or_register_remote_user,
|
||||
redirect_to_subdomain_login_url)
|
||||
from zerver.views.registration import redirect_and_log_into_subdomain
|
||||
redirect_to_subdomain_login_url,
|
||||
redirect_and_log_into_subdomain)
|
||||
|
||||
return_data = kwargs.get('return_data', {})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user