75 lines
2.5 KiB
Plaintext
75 lines
2.5 KiB
Plaintext
extends ../layout.pug
|
|
block title
|
|
|Icy Network - User Settings
|
|
|
|
block body
|
|
.wrapper
|
|
.boxcont
|
|
.box#settings
|
|
h1 User Settings
|
|
.left
|
|
if message.text
|
|
if message.error
|
|
.message.error
|
|
span #{message.text}
|
|
else
|
|
.message
|
|
span #{message.text}
|
|
form#loginForm(method="POST", action="")
|
|
input(type="hidden", name="csrf", value=csrf)
|
|
label(for="username") Username
|
|
input(type="text", name="username", id="username", value=user.username, disabled)
|
|
label(for="display_name") Display Name
|
|
input(type="text", name="display_name", id="display_name", value=user.display_name)
|
|
label Avatar
|
|
.avatarCont
|
|
include ../includes/avatar.pug
|
|
.options
|
|
a#newAvatar(href='#') Change Avatar
|
|
if user.avatar_file
|
|
a#removeAvatar(href='#') Remove Avatar
|
|
input(type="submit", value="Save Settings")
|
|
.right
|
|
h3 Social Media Accounts
|
|
.specify(title="You can add social media accounts to your account for ease of login. Once added, logging in from linked sources logs you into this account automatically.") ?
|
|
include ../includes/external.pug
|
|
if google_auth == false
|
|
a.option.accdisconnect(href="/api/external/google/remove")
|
|
i.fa.fa-fw.fa-times
|
|
|Unlink Google
|
|
if twitter_auth == false
|
|
a.option.accdisconnect(href="/api/external/twitter/remove")
|
|
i.fa.fa-fw.fa-times
|
|
|Unlink Twitter
|
|
if facebook_auth == false
|
|
a.option.accdisconnect(href="/api/external/facebook/remove")
|
|
i.fa.fa-fw.fa-times
|
|
|Unlink Facebook
|
|
if discord_auth == false
|
|
a.option.accdisconnect(href="/api/external/discord/remove")
|
|
i.fa.fa-fw.fa-times
|
|
|Unlink Discord
|
|
h3 Other Options
|
|
if password
|
|
a.option(href="/user/manage/password")
|
|
i.fa.fa-fw.fa-lock
|
|
|Change Password
|
|
if totp
|
|
a.option(href="/user/two-factor/disable")
|
|
i.fa.fa-fw.fa-lock
|
|
|Disable Two-Factor Authentication
|
|
else
|
|
a.option(href="/user/two-factor")
|
|
i.fa.fa-fw.fa-lock
|
|
|Enable Two-Factor Authentication
|
|
a.option(href="/user/manage/email")
|
|
i.fa.fa-fw.fa-envelope
|
|
|Change Email Address
|
|
.clients
|
|
h2 Authorized Applications
|
|
.specify(title="Applications which have access to basic user information. You may restrict access at any time by pressing the red icon on the top right of the application card.") ?
|
|
.cl#clientlist
|
|
span.load
|
|
i.fa.fa-spin.fa-spinner.fa-2x
|
|
span Loading list
|