mirror of
https://github.com/nfonteyne/octane-website.git
synced 2026-09-03 23:24:48 +02:00
update: link to authentik to change password if needed
This commit is contained in:
parent
7e4b067e54
commit
09b7b0bc10
6 changed files with 35 additions and 2 deletions
|
|
@ -34,6 +34,7 @@ async function initNav(activePage) {
|
|||
</div>
|
||||
<div class="nav-user">
|
||||
<button type="button" class="icon-btn secondary" id="theme-toggle" title="Changer de thème" aria-label="Changer de thème"></button>
|
||||
${me.authentikAccountUrl ? `<a href="${escapeHtml(me.authentikAccountUrl)}" target="_blank" rel="noopener" title="Gérer mon compte Authentik (mot de passe, etc.)">Mon compte</a>` : ''}
|
||||
<a class="nav-profile-link" href="/profile.html">
|
||||
${avatarHtml(me, 'avatar-sm')}
|
||||
<span>${escapeHtml(me.name)}${me.isAdmin ? ' <span class="badge">admin</span>' : ''}</span>
|
||||
|
|
|
|||
|
|
@ -46,7 +46,12 @@ function statTile(value, label) {
|
|||
</div>
|
||||
|
||||
<div class="panel">
|
||||
<p class="empty">Identité gérée par Authentik — pour changer votre nom, email ou mot de passe, rendez-vous sur votre compte Authentik.</p>
|
||||
<p class="empty">
|
||||
Identité gérée par Authentik — pour changer votre nom, email ou mot de passe,
|
||||
${profile.authentikAccountUrl
|
||||
? `rendez-vous sur <a href="${escapeHtml(profile.authentikAccountUrl)}" target="_blank" rel="noopener">votre compte Authentik</a>.`
|
||||
: 'rendez-vous sur votre compte Authentik.'}
|
||||
</p>
|
||||
<a href="/auth/logout"><button type="button" class="danger">Se déconnecter</button></a>
|
||||
</div>
|
||||
`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue