Skip to content
Snippets Groups Projects
Commit 361f4a6b authored by Saleem Latif's avatar Saleem Latif
Browse files

Hide SSO related messages on login page if user is not in the SSO pipeline.

parent c346b642
Branches
Tags
No related merge requests found
<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 { %>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment