66 lines
1.8 KiB
Plaintext
66 lines
1.8 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<script>
|
|
const reloadState = "<%= reload %>";
|
|
|
|
if (reloadState === "true") {
|
|
window.location.href = "/";
|
|
}
|
|
</script>
|
|
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>Login Page</title>
|
|
<link
|
|
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.7/dist/css/bootstrap.min.css"
|
|
rel="stylesheet"
|
|
integrity="sha384-LN+7fdVzj6u52u30Kp6M/trliBMCMKTyK833zpbD+pXdCLuTusPj697FH4R/5mcr"
|
|
crossorigin="anonymous"
|
|
/>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<div class="row">
|
|
<h1>Login page</h1>
|
|
</div>
|
|
<div class="row">
|
|
<form action="/login" method="post">
|
|
<div class="input-group">
|
|
<input
|
|
type="text"
|
|
name="username"
|
|
placeholder="Username"
|
|
class="form-control"
|
|
required
|
|
/>
|
|
<input
|
|
type="password"
|
|
name="password"
|
|
placeholder="Password"
|
|
class="form-control"
|
|
required
|
|
/>
|
|
<input
|
|
type="submit"
|
|
value="Login"
|
|
class="btn btn-primary"
|
|
onsubmit="this.form.submit()"
|
|
/>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
<div class="alert alert-danger alter-dismissable fade show" role="alert">
|
|
<%= error %>
|
|
<button class="btn-close" aria-label="close" data-bs-dismiss="alert"></button>
|
|
</div>
|
|
</div>
|
|
<script
|
|
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.7/dist/js/bootstrap.bundle.min.js"
|
|
integrity="sha384-ndDqU0Gzau9qJ1lfW4pNLlhNTkCfHzAVBReH9diLvGRem5+R9g2FzA8ZGN954O5Q"
|
|
crossorigin="anonymous"
|
|
></script>
|
|
</body>
|
|
</html>
|