Skip to content

Commit

Permalink
web/users: show - if device was registered before we started saving t…
Browse files Browse the repository at this point in the history
…he time (goauthentik#11256)

Signed-off-by: Jens Langhammer <[email protected]>
  • Loading branch information
BeryJu authored Sep 6, 2024
1 parent 5be49a8 commit 205cc08
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions web/src/user/user-settings/mfa/MFADevicesPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,10 @@ export class MFADevicesPage extends Table<Device> {
return [
html`${item.name}`,
html`${deviceTypeName(item)}`,
html`<div>${getRelativeTime(item.created)}</div>
<small>${item.created.toLocaleString()}</small>`,
html`${item.created.getTime() > 0
? html`<div>${getRelativeTime(item.created)}</div>
<small>${item.created.toLocaleString()}</small>`
: html`-`}`,
html`${item.lastUsed
? html`<div>${getRelativeTime(item.lastUsed)}</div>
<small>${item.lastUsed.toLocaleString()}</small>`
Expand Down

0 comments on commit 205cc08

Please sign in to comment.