Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport] logout link in no roles error page fix (#41813) #41845

Merged
merged 1 commit into from
Aug 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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