summaryrefslogtreecommitdiffhomepage
path: root/src/main/resources/templates
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2024-07-13 04:02:13 -0400
committerrealtradam <[email protected]>2024-07-13 04:02:13 -0400
commitf0a93e706ac4188d5d754dafc17d389275d5993c (patch)
treeab7dd67c9eb399100ffd8ea424766ae5d269b55f /src/main/resources/templates
parentff63bacc647a20c59ce642a4d6b647c3a4290418 (diff)
downloadspring-blog-f0a93e706ac4188d5d754dafc17d389275d5993c.tar.gz
spring-blog-f0a93e706ac4188d5d754dafc17d389275d5993c.zip
everything broke
Diffstat (limited to 'src/main/resources/templates')
-rw-r--r--src/main/resources/templates/auth/register.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/resources/templates/auth/register.html b/src/main/resources/templates/auth/register.html
index 4f8fd44..dc57ca4 100644
--- a/src/main/resources/templates/auth/register.html
+++ b/src/main/resources/templates/auth/register.html
@@ -8,7 +8,7 @@
<div class="flex justify-center bg-white p-12">
<div th:if="${param.fail}" class="text-xl p-4 bg-black text-red-500">Username or Email already exists</div>
- <form th:action="@{/register/save}" th:object="${user}" method="post" class="w-full max-w-lg">
+ <form th:action="@{/register/save}" th:object="${user}" role="form" method="post" class="w-full max-w-lg">
<div class="flex flex-wrap -mx-3 mb-6">
<div class="w-full md:w-1/2 px-3 mb-6 md:mb-0">
<label class="block uppercase tracking-wide text-gray-700 text-xs font-bold mb-2"
@@ -54,7 +54,7 @@
</div>
<div class="flex flex-wrap mb-2">
</div>
- <button type="submit" class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">Register</button>
+ <button th:href="@{/register}" type="submit" class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">Register</button>
</form>
</div>