2025-01-23 13:53:06 +00:00
|
|
|
{{define "head"}}
|
|
|
|
<title>Login - ari melody 💫</title>
|
|
|
|
<link rel="shortcut icon" href="/img/favicon.png" type="image/x-icon">
|
|
|
|
<link rel="stylesheet" href="/admin/static/admin.css">
|
|
|
|
<style>
|
|
|
|
form#login-totp {
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
form div {
|
|
|
|
width: 20rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
form button {
|
|
|
|
margin-top: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
input {
|
|
|
|
width: calc(100% - 1rem - 2px);
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{define "content"}}
|
|
|
|
<main>
|
2025-01-26 23:41:35 +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>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
<form action="/admin/totp" method="POST" id="login-totp">
|
2025-01-23 13:53:06 +00:00
|
|
|
<h1>Two-Factor Authentication</h1>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<label for="totp">TOTP</label>
|
|
|
|
<input type="text" name="totp" value="" autocomplete="one-time-code" required autofocus>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<button type="submit" class="save">Login</button>
|
|
|
|
</form>
|
|
|
|
</main>
|
|
|
|
{{end}}
|