mirror of
https://github.com/boringproxy/boringproxy.git
synced 2025-02-25 18:55:29 -06:00
Don't show login link for scoped tokens
This commit is contained in:
parent
b7dd326c96
commit
f2e3e710d9
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user