Skip to content

Commit

Permalink
logout link in no roles error page fix (#41813)
Browse files Browse the repository at this point in the history
* logout link in no roles error page fix

* review comments
  • Loading branch information
gagan-bhullar-tech authored Aug 28, 2024
1 parent e55ecd5 commit 032ac87
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion airflow/www/templates/airflow/no_roles_permissions.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ <h1>Your user has no roles and/or permissions!</h1>
<p>Unfortunately your user has no roles, and therefore you cannot use Airflow.</p>
<p>Please contact your Airflow administrator
(<a href="https://airflow.apache.org/docs/apache-airflow/stable/security/webserver.html#web-authentication">authentication</a>
may be misconfigured) or <a href="{{ logout_url }}">log out</a> to try again.</p>
may be misconfigured) or
<form method="POST" action="{{logout_url}}" id="logout-form">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
<a href="javascript:{}" onclick="document.getElementById('logout-form').submit();">log out</a> to try again.
</form>
</p>
<p>{{ hostname }}</p>
</div>
</body>
Expand Down

0 comments on commit 032ac87

Please sign in to comment.