45 lines
2.0 KiB
Plaintext
45 lines
2.0 KiB
Plaintext
extends ./layout.pug
|
|
|
|
block title
|
|
|Authorizations - Account settings | Icy Network
|
|
|
|
block settings
|
|
h1 Authorizations
|
|
if message.text
|
|
if message.error
|
|
.alert.alert-danger
|
|
span #{message.text}
|
|
else
|
|
.alert.alert-success
|
|
span #{message.text}
|
|
p These applications are authorized automatically when requested, provided you have already consented to the information they require.
|
|
p By revoking the authorization, you may be prompted to authorize the application again in the future. This does NOT ensure that your information
|
|
|is deleted by any third-party applications in question. Please contact each application's owner individually if you wish to remove your information
|
|
|from their servers.
|
|
hr
|
|
.authorization-wrapper
|
|
each auth in authorizations
|
|
.authorization__client
|
|
.authorization__client-image
|
|
if auth.client.picture
|
|
img(src='/uploads/' + auth.client.picture.file, alt=auth.client.title)
|
|
else
|
|
img(src='/public/image/application.png', alt='No picture')
|
|
.authorization__client-content
|
|
span.authorization__client-title #{auth.client.title}
|
|
span.authorization__client-description #{auth.client.description}
|
|
.authorization__client-urls
|
|
each url in auth.client.urls
|
|
if url.type == 'website'
|
|
a.authorization__client-url(href=url.url, target="_blank", rel="nofollow") Visit website
|
|
if url.type == 'privacy'
|
|
a.authorization__client-url(href=url.url, target="_blank", rel="nofollow") Privacy Policy
|
|
if url.type == 'terms'
|
|
a.authorization__client-url(href=url.url, target="_blank", rel="nofollow") Terms of Service
|
|
.authorization__client-actions
|
|
form(method="post",action="/account/oauth2/revoke/" + auth.id)
|
|
input(type="hidden", name="_csrf", value=csrf)
|
|
button.btn.btn-primary(type="submit") Revoke
|
|
if !authorizations.length
|
|
p.text-center You have not authorized any applications.
|