-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add logout view, redirection depending if user logged with magic link…
… or ProConnect (WIP, tests missing)
- Loading branch information
1 parent
7412416
commit 33dc422
Showing
3 changed files
with
14 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
lacommunaute/templates/registration/includes/logout_link.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{% if request.session.MAGIC_LINK %} | ||
{% url 'members:logout' as logout_url %} | ||
{% else %} | ||
{% url 'openid_connect:logout' as logout_url %} | ||
{% endif %} | ||
<a class="dropdown-item text-danger" id="js-logout" href="{{ logout_url }}"">Déconnexion</a> |