This commit is contained in:
2023-04-03 11:16:15 +02:00
commit 35abb85365
8 changed files with 451 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
<!DOCTYPE html>
<html lang="sr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>User registration to LDAP system</title>
<style>
.container {
max-width:900px;
margin: 0 auto;
font-family: Arial, Helvetica, sans-serif;
color: #3d3d3d;
}
body {
background-color: #e6e6e6;
}
</style>
</head>
<body>
<main class="container">
<h1 style="text-align:center;">Register</h1>
<form action="/account/register/" method="POST" style="text-align:center;">
<label for="username">username</label>
<input type="text" name="username" id="username" placeholder="username" required>
<label for="password">password</label>
<input type="password" name="password" id="password" placeholder="password" required>
<p>password must be at least 8 characters long<p>
<br>
<img src=/account/register/captcha_img/{{ imgsrc }} alt="{{ captchahash }}" style="width:200">
<p>
<label for="captcha answer">captcha answer</label>
<input type="text" name="captchaa" id="captchaa" placeholder="captcha answer" required>
<input type="hidden" name="captchaq" id="captchaq" value="{{ imgsrc }}">
<button>Register</button>
</form>
</main>
</body>
</html>