This repository has been archived on 2023-05-12. You can view files and clone it, but cannot push or open issues or pull requests.
media-host/views/pages/register.ejs
2023-05-12 00:32:13 -04:00

54 lines
2.1 KiB
Text

<!DOCTYPE html>
<html>
<head>
<title>register - <%- config["meta"]["name"] %></title>
<meta property="og:site_name" content="<%= config.meta.name %>">
<meta name="title" content="Register">
<meta property="og:title" content="Register">
<meta property="twitter:title" content="Register">
<meta property="og:type" content="website">
<%- 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">Register</h2>
<p class="nm">Make an account for our website.</p><br>
<% 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-signup"] == 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>
<noscript>
<p><i>This instance requires Javascript in order to validate your request, due to a CAPTCHA requirement.</i></p>
</noscript>
<% } %>
<% } %>
<div class="field">
<input type="checkbox" name="agree" required>
<label for="agree">By ticking this checkbox, you agree to the <a href="/terms">Terms of Service</a> and <a href="/privacy">Privacy Policy</a>.</label>
</div>
<input type="submit" value="Make account">
</form>
</div>
<%- include("../partial/footer") %>
</body>
</html>