2024-08-05 01:23:17 +01:00
|
|
|
{{define "head"}}
|
2024-08-31 15:25:44 +01:00
|
|
|
<title>Login - ari melody 💫</title>
|
2024-08-05 01:23:17 +01:00
|
|
|
<link rel="shortcut icon" href="/img/favicon.png" type="image/x-icon">
|
2025-01-21 01:01:33 +00:00
|
|
|
<link rel="stylesheet" href="/admin/static/admin.css">
|
2024-08-05 01:23:17 +01:00
|
|
|
<style>
|
|
|
|
p a {
|
|
|
|
color: #2a67c8;
|
|
|
|
}
|
|
|
|
|
|
|
|
a.discord {
|
|
|
|
color: #5865F2;
|
|
|
|
}
|
2025-01-20 10:34:39 +00:00
|
|
|
|
2025-01-23 12:09:33 +00:00
|
|
|
form#login {
|
2025-01-20 10:34:39 +00:00
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
form div {
|
|
|
|
width: 20rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
form button {
|
|
|
|
margin-top: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
input {
|
|
|
|
width: 100%;
|
2025-01-20 18:54:03 +00:00
|
|
|
}
|
2024-08-05 01:23:17 +01:00
|
|
|
</style>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{define "content"}}
|
|
|
|
<main>
|
2025-01-23 00:37:19 +00:00
|
|
|
{{if .Session.Message.Valid}}
|
|
|
|
<p id="message">{{html .Session.Message.String}}</p>
|
|
|
|
{{end}}
|
|
|
|
{{if .Session.Error.Valid}}
|
|
|
|
<p id="error">{{html .Session.Error.String}}</p>
|
2025-01-21 01:01:33 +00:00
|
|
|
{{end}}
|
2024-08-31 15:25:44 +01:00
|
|
|
|
2025-01-20 10:34:39 +00:00
|
|
|
<form action="/admin/login" method="POST" id="login">
|
|
|
|
<div>
|
|
|
|
<label for="username">Username</label>
|
2025-01-23 00:37:19 +00:00
|
|
|
<input type="text" name="username" value="" autocomplete="username" required>
|
2025-01-20 10:34:39 +00:00
|
|
|
|
|
|
|
<label for="password">Password</label>
|
2025-01-23 00:37:19 +00:00
|
|
|
<input type="password" name="password" value="" autocomplete="current-password" required>
|
2025-01-20 10:34:39 +00:00
|
|
|
|
2025-01-20 15:08:01 +00:00
|
|
|
<label for="totp">TOTP</label>
|
2025-01-23 00:37:19 +00:00
|
|
|
<input type="text" name="totp" value="" autocomplete="one-time-code" required>
|
2025-01-20 10:34:39 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<button type="submit" class="save">Login</button>
|
|
|
|
</form>
|
2024-08-05 01:23:17 +01:00
|
|
|
</main>
|
|
|
|
{{end}}
|