Merge pull request #18045 from edx/saleem-latif/ENT-908

ENT-908: Hide SSO related messages on login page if user is not in the SSO pipeline.
This commit is contained in:
Saleem Latif
2018-04-27 12:08:31 +05:00
committed by GitHub

View File

@@ -1,14 +1,15 @@
<div class="js-form-feedback" aria-live="assertive" tabindex="-1">
</div>
<% if ( context.createAccountOption !== false && !context.syncLearnerProfileData && !context.enterpriseName) { %>
<% if ( context.createAccountOption !== false && !context.syncLearnerProfileData && !(context.enterpriseName && context.currentProvider) ) { %>
<div class="toggle-form">
<span class="text"><%- gettext("First time here?") %></span>
<a href="#login" class="form-toggle" data-type="register"><%- gettext("Create an Account.") %></a>
</div>
<% } %>
<% if (context.enterpriseName) { %>
<% // Hide SSO related messages if we are not in the SSO pipeline. %>
<% if (context.enterpriseName && context.currentProvider) { %>
<% if (context.pipelineUserDetails && context.pipelineUserDetails.email) { %>
<h2><%- gettext("Sign in to continue learning as {email}").replace("{email}", context.pipelineUserDetails.email) %></h2>
<% } else { %>