registerPage.jsp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <%--
  2. Created by IntelliJ IDEA.
  3. User: Kuba
  4. Date: 14.06.2023
  5. Time: 18:49
  6. To change this template use File | Settings | File Templates.
  7. --%>
  8. <%@ page contentType="text/html;charset=UTF-8" language="java" %>
  9. <html>
  10. <head>
  11. <title>Registration Page</title>
  12. <script src="https://www.google.com/recaptcha/api.js" async defer></script>
  13. <script>
  14. function onSubmit(token) {
  15. document.getElementById("registrationForm").submit();
  16. }
  17. </script>
  18. </head>
  19. <body>
  20. <h1>Registration</h1>
  21. <form id="registrationForm" action="/register" method="POST">
  22. <!-- Add your registration form fields here -->
  23. <label for="username">Username:</label>
  24. <input type="text" id="username" name="username" required><br>
  25. <label for="password">Password:</label>
  26. <input type="password" id="password" name="password" required><br>
  27. <!-- Add the reCAPTCHA widget -->
  28. <div class="g-recaptcha" data-sitekey="YOUR_RECAPTCHA_SITE_KEY" data-callback="onSubmit" data-size="invisible"></div>
  29. <button type="submit">Register</button>
  30. </form>
  31. </body>
  32. </html>