Update templates/register.html
Browse files- templates/register.html +28 -15
templates/register.html
CHANGED
@@ -4,23 +4,36 @@
|
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
<title>Register</title>
|
|
|
|
|
7 |
</head>
|
8 |
<body>
|
9 |
<h1>Register</h1>
|
10 |
-
<form action="/register" method="post">
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
</body>
|
26 |
</html>
|
|
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
<title>Register</title>
|
7 |
+
<!-- Include the reCAPTCHA enterprise script -->
|
8 |
+
<script src="https://www.google.com/recaptcha/enterprise.js?render=6LdaUQIpAAAAACQFcOxakEVXK9QHpaYbic6IClNO" async defer></script>
|
9 |
</head>
|
10 |
<body>
|
11 |
<h1>Register</h1>
|
12 |
+
<form action="/register" method="post" id="registration-form">
|
13 |
+
<label for="username">Username:</label>
|
14 |
+
<input type="text" id="username" name="username" required><br><br>
|
15 |
+
|
16 |
+
<label for="email">Email:</label>
|
17 |
+
<input type="email" id="email" name="email" required><br><br>
|
18 |
+
|
19 |
+
<label for="password">Password:</label>
|
20 |
+
<input type="password" id="password" name="password" required><br><br>
|
21 |
+
|
22 |
+
<label for="confirm_password">Confirm Password:</label>
|
23 |
+
<input type="password" id="confirm_password" name="confirm_password" required><br><br>
|
24 |
+
|
25 |
+
<!-- Invisible reCAPTCHA badge -->
|
26 |
+
<button class="g-recaptcha"
|
27 |
+
data-sitekey="6LdaUQIpAAAAACQFcOxakEVXK9QHpaYbic6IClNO"
|
28 |
+
data-callback='onSubmit'
|
29 |
+
data-action='submit'>
|
30 |
+
Register
|
31 |
+
</button>
|
32 |
+
</form>
|
33 |
+
<script>
|
34 |
+
function onSubmit(token) {
|
35 |
+
document.getElementById("registration-form").submit();
|
36 |
+
}
|
37 |
+
</script>
|
38 |
</body>
|
39 |
</html>
|