Set default value of pipeline_user_details to empty dict instead of None.
This commit is contained in:
@@ -764,7 +764,7 @@ class StudentAccountLoginAndRegistrationTest(ThirdPartyAuthTestMixin, UrlResetMi
|
||||
"errorMessage": None,
|
||||
"registerFormSubmitButtonText": "Create Account",
|
||||
"syncLearnerProfileData": False,
|
||||
"pipeline_user_details": {"email": "test@test.com"} if add_user_details else None
|
||||
"pipeline_user_details": {"email": "test@test.com"} if add_user_details else {}
|
||||
}
|
||||
if expected_ec is not None:
|
||||
# If we set an EnterpriseCustomer, third-party auth providers ought to be hidden.
|
||||
|
||||
@@ -269,7 +269,7 @@ def _third_party_auth_context(request, redirect_to, tpa_hint=None):
|
||||
"errorMessage": None,
|
||||
"registerFormSubmitButtonText": _("Create Account"),
|
||||
"syncLearnerProfileData": False,
|
||||
"pipeline_user_details": None
|
||||
"pipeline_user_details": {}
|
||||
}
|
||||
|
||||
if third_party_auth.is_enabled():
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<% } %>
|
||||
|
||||
<% if (context.enterpriseName) { %>
|
||||
<% if (context.pipelineUserDetails.email) { %>
|
||||
<% if (context.pipelineUserDetails && context.pipelineUserDetails.email) { %>
|
||||
<h2><%- gettext("Sign in to continue learning as {email}").replace("{email}", context.pipelineUserDetails.email) %></h2>
|
||||
<% } else { %>
|
||||
<h2><%- gettext("Sign in to continue learning") %></h2>
|
||||
|
||||
Reference in New Issue
Block a user