2025-01-20 23:49:54 +00:00
|
|
|
{{define "head"}}
|
|
|
|
<title>Account Settings - ari melody 💫</title>
|
|
|
|
<link rel="shortcut icon" href="/img/favicon.png" type="image/x-icon">
|
2025-01-21 00:20:07 +00:00
|
|
|
<link rel="stylesheet" href="/admin/static/edit-account.css">
|
2025-01-20 23:49:54 +00:00
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{define "content"}}
|
|
|
|
<main>
|
|
|
|
<h1>Account Settings ({{.Account.Username}})</h1>
|
|
|
|
|
|
|
|
<div class="card-title">
|
|
|
|
<h2>Change Password</h2>
|
2025-01-21 00:20:07 +00:00
|
|
|
</div>
|
|
|
|
<div class="card">
|
2025-01-20 23:49:54 +00:00
|
|
|
<form action="/api/v1/change-password" method="POST" id="change-password">
|
|
|
|
<div>
|
|
|
|
<label for="current-password">Current Password</label>
|
|
|
|
<input type="password" name="current-password" value="" autocomplete="current-password">
|
|
|
|
|
|
|
|
<label for="new-password">Password</label>
|
|
|
|
<input type="password" name="new-password" value="" autocomplete="new-password">
|
|
|
|
|
|
|
|
<label for="confirm-password">Confirm Password</label>
|
|
|
|
<input type="password" name="confirm-password" value="" autocomplete="new-password">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<button type="submit" class="save">Change Password</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card-title">
|
|
|
|
<h2>MFA Devices</h2>
|
|
|
|
</div>
|
|
|
|
<div class="card mfa-devices">
|
|
|
|
{{if .TOTPs}}
|
|
|
|
{{range .TOTPs}}
|
|
|
|
<div class="mfa-device">
|
2025-01-21 01:01:33 +00:00
|
|
|
<div>
|
|
|
|
<p class="mfa-device-name">{{.Name}}</p>
|
|
|
|
<p class="mfa-device-date">Added: {{.CreatedAt}}</p>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<a class="delete">Delete</a>
|
|
|
|
</div>
|
2025-01-20 23:49:54 +00:00
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
{{else}}
|
|
|
|
<p>You have no MFA devices.</p>
|
|
|
|
{{end}}
|
|
|
|
|
2025-01-21 01:01:33 +00:00
|
|
|
<button type="submit" class="new" id="add-mfa-device">Add MFA Device</button>
|
2025-01-20 23:49:54 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card-title">
|
|
|
|
<h2>Danger Zone</h2>
|
|
|
|
</div>
|
|
|
|
<div class="card danger">
|
|
|
|
<p>
|
|
|
|
Clicking the button below will delete your account.
|
|
|
|
This action is <strong>irreversible</strong>.
|
|
|
|
You will be prompted to confirm this decision.
|
|
|
|
</p>
|
|
|
|
<button class="delete" id="delete">Delete Account</button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</main>
|
|
|
|
|
|
|
|
<script type="module" src="/admin/static/edit-account.js" defer></script>
|
|
|
|
{{end}}
|