mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-11 09:28:27 -04:00
Fix for security hole with setting session['user_id'] before second factor of authentication has been authorised.
This commit is contained in:
@@ -26,16 +26,24 @@
|
||||
|
||||
|
||||
{% block inside_header %}
|
||||
<div class="phase-banner-beta">
|
||||
<strong class="phase-tag">BETA</strong>
|
||||
</div>
|
||||
{% if current_user.is_authenticated %}
|
||||
<div class="">
|
||||
<a class="" href="{{ url_for('main.sign_out') }}">Sign out</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
{% block header_class %}with-proposition{% endblock %}
|
||||
{% block proposition_header %}
|
||||
<div class="header-proposition">
|
||||
<div class='content'>
|
||||
<div class="phase-banner-beta">
|
||||
<strong class="phase-tag">BETA</strong>
|
||||
</div>
|
||||
{% if current_user.is_authenticated() %}
|
||||
<nav id='proposition-menu'>
|
||||
<p id='proposition-link'>
|
||||
<a href="{{ url_for('main.sign_out')}}">Sign out</a>
|
||||
</p>
|
||||
</nav>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% set global_header_text = "GOV.UK Notify" %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user