From cbf4060441ff442c82fb7b8dc92929d625a7f574 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Z=C3=B6ller?= Date: Fri, 5 Dec 2025 20:37:00 +0100 Subject: [PATCH] Tests --- .../fitpub/controller/AuthViewController.java | 5 + .../resources/templates/auth/register.html | 307 ++++++++++++++++++ 2 files changed, 312 insertions(+) create mode 100644 src/main/resources/templates/auth/register.html diff --git a/src/main/java/org/operaton/fitpub/controller/AuthViewController.java b/src/main/java/org/operaton/fitpub/controller/AuthViewController.java index 70f822f..53b1130 100644 --- a/src/main/java/org/operaton/fitpub/controller/AuthViewController.java +++ b/src/main/java/org/operaton/fitpub/controller/AuthViewController.java @@ -15,6 +15,11 @@ public class AuthViewController { return "auth/login"; } + @GetMapping("/register") + public String register() { + return "auth/register"; + } + @PostMapping("/logout") public String logout() { // Logout is handled client-side (removing JWT token) diff --git a/src/main/resources/templates/auth/register.html b/src/main/resources/templates/auth/register.html new file mode 100644 index 0000000..94c1b04 --- /dev/null +++ b/src/main/resources/templates/auth/register.html @@ -0,0 +1,307 @@ + + + + + Register - FitPub + + + +
+
+
+
+
+

+ + Create Account +

+ +

+ Join FitPub and start tracking your fitness journey +

+ + +
+ + + + + + + +
+ + +
+ 3-30 characters, letters, numbers and underscores only +
+
+ Please enter a valid username (3-30 characters, alphanumeric and underscores). +
+
+ + +
+ + +
+ Please enter a valid email address. +
+
+ + +
+ + +
+ This is how your name will appear to others +
+
+ Please enter your display name. +
+
+ + +
+ + +
+ At least 8 characters +
+
+ Password must be at least 8 characters long. +
+
+ + +
+ + +
+ Please confirm your password. +
+
+ + +
+ + +
+ You must agree to the terms before registering. +
+
+ + +
+ +
+
+ + +
+
+
+ + +
+

+ Already have an account? + Sign in +

+
+
+
+ + +
+
+
Why Join FitPub?
+
    +
  • Track your fitness activities with GPS
  • +
  • Share your progress with the Fediverse
  • +
  • Earn achievements and personal records
  • +
  • Own your data - it's yours, not ours
  • +
+
+
+
+
+
+ + + + + + +