feat: label session actuelle + fix bouton révoquer
- GetSessions: retourne is_current=true pour la session correspondant au cookie courant - GetSessions: select token_hash pour la comparaison (non exposé dans le JSON) - profile.html: badge "Session actuelle" + désactive révoquer pour la session courante (utiliser le bouton Déconnexion à la place) - app.js: revokeSession utilise finally pour reset + isRevoking() helper - pages.css: styles .badge-current + .session-current Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
1cbd7e9d17
commit
98cdabf3e1
4 changed files with 40 additions and 14 deletions
|
|
@ -725,6 +725,18 @@
|
|||
.session-sep { opacity: .4; }
|
||||
.session-id { font-family: monospace; opacity: .6; }
|
||||
|
||||
.session-current { background: rgba(var(--neu-primary-rgb, 108,142,244), .05); border-radius: var(--neu-radius); padding-left: .5rem; padding-right: .5rem; }
|
||||
|
||||
.badge-current {
|
||||
font-size: .65rem;
|
||||
padding: .15rem .45rem;
|
||||
border-radius: 99px;
|
||||
background: rgba(34,197,94,.15);
|
||||
color: var(--neu-success);
|
||||
font-weight: 600;
|
||||
letter-spacing: .02em;
|
||||
}
|
||||
|
||||
/* ── Logo auth LineIcons ─────────────────────────────────────────────────────── */
|
||||
.logo-icon {
|
||||
font-size: 2.5rem;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue