Skip to content

Commit

Permalink
Fix MFA auth flow (#8720)
Browse files Browse the repository at this point in the history
* Re-add html account base
Fixes #8690

* fix base template
  • Loading branch information
matmair authored Dec 19, 2024
1 parent 5379269 commit aad5575
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/InvenTree/templates/403_csrf.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "account/base.html" %}
{% extends "skeleton.html" %}

{% load i18n %}
{% load inventree_extras %}
Expand Down
37 changes: 37 additions & 0 deletions src/backend/InvenTree/templates/account/base.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{% extends "skeleton.html" %}
{% load i18n %}
{% load inventree_extras %}

{% block body %}
<body class='login-screen' style='background: url({% inventree_splash %}); background-size: cover;'>
<div class='container-fluid'>
<div class='notification-area' id='alerts'>
<!-- Div for displayed alerts -->
</div>
</div>

<div class='main body-wrapper login-screen d-flex'>

<div class='login-container'>
<div class="row">
<div class='container-fluid'>

<div class='clearfix content-heading login-header d-flex flex-wrap'>
<img class="pull-left" src="{% inventree_logo %}" alt='{% trans "InvenTree logo" %}' width="60" height="60"/>
{% include "spacer.html" %}
<span class='float-right'><h3>{% inventree_title %}</h3></span>
</div>
</div>
<div class='container-fluid'>
<hr>
{% block content %}
{% endblock content %}
</div>
</div>

</div>

{% block extra_body %}
{% endblock extra_body %}
</div>
{% endblock body %}

0 comments on commit aad5575

Please sign in to comment.