Fix account url, use template for settings
This commit is contained in:
parent
5b6c6f1aac
commit
61be70054b
1 changed files with 3 additions and 3 deletions
|
@ -40,10 +40,10 @@
|
|||
{% endif %}
|
||||
<div>
|
||||
<span>Provider:</span>
|
||||
{{ user.oidc_provider.name }}
|
||||
{{ oidc_provider_settings.name }}
|
||||
</div>
|
||||
{% if oidc_provider_settings.account_url %}
|
||||
<button onclick="location.href='{{ oidc_provider_settings.account_url }}'" class="logout">Account</button>
|
||||
{% if oidc_provider_settings.account_url_template %}
|
||||
<button onclick="location.href='{{ oidc_provider_settings.get_account_url(request, user) }}'" class="account">Account management</button>
|
||||
{% endif %}
|
||||
<button onclick="location.href='{{ request.url_for("logout") }}'" class="logout">Logout</button>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue