free trial: Send users to /upgrade after realm creation.

This commit is contained in:
Vishnu KS
2020-05-22 19:12:46 +05:30
committed by Tim Abbott
parent a5f0379e0f
commit 8784539d53
12 changed files with 242 additions and 3 deletions

View File

@@ -343,7 +343,8 @@ def accounts_register(request: HttpRequest) -> HttpResponse:
# Because for realm creation, registration happens on the
# root domain, we need to log them into the subdomain for
# their new realm.
return redirect_and_log_into_subdomain(ExternalAuthResult(user_profile=user_profile))
return redirect_and_log_into_subdomain(ExternalAuthResult(user_profile=user_profile,
data_dict={'is_realm_creation': True}))
# This dummy_backend check below confirms the user is
# authenticating to the correct subdomain.