55 lines
1.9 KiB
Text
55 lines
1.9 KiB
Text
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>login - <%- config["meta"]["name"] %></title>
|
|
<meta property="og:site_name" content="<%= config.meta.name %>">
|
|
|
|
<meta name="title" content="Login">
|
|
<meta property="og:title" content="Login">
|
|
<meta property="twitter:title" content="Login">
|
|
<%- include("../partial/html-head")%>
|
|
</head>
|
|
<body>
|
|
<%- include("../partial/header") %>
|
|
<div class="modal">
|
|
<% if (config.alert) { %>
|
|
<div class="err"><p><%-config.alert%></p></div>
|
|
<% } %>
|
|
<h2 class="nm">Login</h2>
|
|
|
|
<% if (config["allow-signup"] == true) { %>
|
|
<p class="nm">Need an account? <a href="/register">Register</a>.</p><br>
|
|
<% } else { %>
|
|
<p class="nm">Log in to your account.</p><br>
|
|
<% } %>
|
|
<% if (typeof message == "string") { %>
|
|
<div class="suc">
|
|
<p><%= message %></p>
|
|
</div>
|
|
<% } %>
|
|
<% if (typeof err == "string") { %>
|
|
<div class="err">
|
|
<p><%= err %></p>
|
|
</div>
|
|
<% } %>
|
|
<form method="post">
|
|
<div class="field">
|
|
<label for="username">Username</label>
|
|
<input name="username" type="text" autocomplete="off" placeholder="username" required>
|
|
</div>
|
|
<div class="field">
|
|
<label for="password">Password</label>
|
|
<input name="password" type="password" autocomplete="off" placeholder="p@ssw0rd" required>
|
|
</div>
|
|
<% if (config["captcha"]) { %>
|
|
<% if (config["captcha"]["enabled"] == true && config["captcha"]["show-at-login"] == true) { %>
|
|
<script src="https://js.hcaptcha.com/1/api.js?recaptchacompat=off" async defer></script>
|
|
<div class="h-captcha" data-sitekey="<%= config['captcha']['sitekey'] %>"></div>
|
|
<% } %>
|
|
<% } %>
|
|
<input type="submit" value="Login">
|
|
</form>
|
|
</div>
|
|
<%- include("../partial/footer") %>
|
|
</body>
|
|
</html> |