| 1234567891011121314151617181920212223242526272829303132333435363738 |
- <%--
- Created by IntelliJ IDEA.
- User: Kuba
- Date: 14.06.2023
- Time: 18:49
- To change this template use File | Settings | File Templates.
- --%>
- <%@ page contentType="text/html;charset=UTF-8" language="java" %>
- <html>
- <head>
- <title>Registration Page</title>
- <script src="https://www.google.com/recaptcha/api.js" async defer></script>
- <script>
- function onSubmit(token) {
- document.getElementById("registrationForm").submit();
- }
- </script>
- </head>
- <body>
- <h1>Registration</h1>
- <form id="registrationForm" action="/register" method="POST">
- <!-- Add your registration form fields here -->
- <label for="username">Username:</label>
- <input type="text" id="username" name="username" required><br>
- <label for="password">Password:</label>
- <input type="password" id="password" name="password" required><br>
- <!-- Add the reCAPTCHA widget -->
- <div class="g-recaptcha" data-sitekey="YOUR_RECAPTCHA_SITE_KEY" data-callback="onSubmit" data-size="invisible"></div>
- <button type="submit">Register</button>
- </form>
- </body>
- </html>
|