Skip to content

Commit

Permalink
Fixed logout button
Browse files Browse the repository at this point in the history
  • Loading branch information
Mstiekema authored and Merijn Stiekema committed Dec 12, 2023
1 parent f4e9ddc commit 25ff808
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions admin_board_view/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
</a>
<ul class="dropdown-menu dropdown-menu-dark text-small shadow" aria-labelledby="dropdownUser1">
<form action="{% url 'oidc_logout' %}" method="post">
{% csrf_token %}
<input class="dropdown-item" type="submit" value="Sign out">
</form>
</ul>
Expand Down
1 change: 0 additions & 1 deletion undead_mongoose/oidc.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

class UndeadMongooseOIDC(OIDCAuthenticationBackend):
def create_user(self, claims):
print(claims)
user = super(UndeadMongooseOIDC, self).create_user(claims)
if claims['is_admin']:
user.is_superuser = True
Expand Down

0 comments on commit 25ff808

Please sign in to comment.