Don't show login link for scoped tokens

This commit is contained in:
Anders Pitman 2022-02-19 08:49:38 -07:00
parent b7dd326c96
commit f2e3e710d9

View File

@ -5,11 +5,11 @@
<div class='list-item'>
{{ if eq $tokenData.Client "" }}
<span class='token'>{{$token}} (Owner: {{$tokenData.Owner}}) (Client: Any)</span>
<a href='/login?access_token={{$token}}'>Login link</a>
<img class='qr-code' src='{{index $.QrCodes $token}}' width=100 height=100>
{{ else }}
<span class='token'>{{$token}} (Owner: {{$tokenData.Owner}}) (Client: {{$tokenData.Client}})</span>
{{ end }}
<a href='/login?access_token={{$token}}'>Login link</a>
<img class='qr-code' src='{{index $.QrCodes $token}}' width=100 height=100>
<a href="/confirm-delete-token?token={{$token}}">
<button class='button'>Delete</button>
</a>