Skip to content

Commit

Permalink
Render login beacon iframe only on client apps
Browse files Browse the repository at this point in the history
  • Loading branch information
jace committed May 15, 2020
1 parent a0648d2 commit f0f2015
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -66,7 +66,7 @@
{%- endif %}
</ul>
{%- if login and beacon and current_auth.is_anonymous %}
{%- if current_auth.lastuser %}
{%- if current_auth.lastuser and not current_auth.lastuser.is_master_data_source %}
{{ networkbar_login_beacon(current_auth.lastuser.endpoint_url(current_auth.lastuser.login_beacon_iframe_endpoint) + '?client_id=' + config['LASTUSER_CLIENT_ID'] + '&login_url=' + url_for('login', _external=true)) }}
{%- endif %}
{%- endif %}
Expand Down Expand Up @@ -155,7 +155,7 @@
</div><!-- /.navbar-collapse -->
{%- endif %}
{%- if login and beacon and current_auth.is_anonymous %}
{%- if current_auth.lastuser %}
{%- if current_auth.lastuser and not current_auth.lastuser.is_master_data_source %}
{{ networkbar_login_beacon(current_auth.lastuser.endpoint_url(current_auth.lastuser.login_beacon_iframe_endpoint) + '?client_id=' + config['LASTUSER_CLIENT_ID'] + '&login_url=' + url_for('login', _external=true)) }}
{%- endif %}
{%- endif %}
Expand Down
2 changes: 1 addition & 1 deletion baseframe/templates/baseframe/mui/components.html.jinja2
Expand Up @@ -57,7 +57,7 @@
</div>
</nav>
{%- if current_auth.is_anonymous %}
{%- if current_auth.lastuser %}
{%- if current_auth.lastuser and not current_auth.lastuser.is_master_data_source %}
{{ networkbar_login_beacon(current_auth.lastuser.endpoint_url(current_auth.lastuser.login_beacon_iframe_endpoint) + '?client_id=' + config['LASTUSER_CLIENT_ID'] + '&login_url=' + url_for('login', _external=true)) }}
{%- endif %}
{%- endif %}
Expand Down

0 comments on commit f0f2015

Please sign in to comment.