diff --git a/src/main/java/org/operaton/fitpub/controller/AuthViewController.java b/src/main/java/org/operaton/fitpub/controller/AuthViewController.java index 53b1130..70f822f 100644 --- a/src/main/java/org/operaton/fitpub/controller/AuthViewController.java +++ b/src/main/java/org/operaton/fitpub/controller/AuthViewController.java @@ -15,11 +15,6 @@ 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/java/org/operaton/fitpub/controller/HomeController.java b/src/main/java/org/operaton/fitpub/controller/HomeController.java index 8978a22..5b9e6e5 100644 --- a/src/main/java/org/operaton/fitpub/controller/HomeController.java +++ b/src/main/java/org/operaton/fitpub/controller/HomeController.java @@ -11,6 +11,6 @@ public class HomeController { @GetMapping("/") public String home() { - return "index"; + return "redirect:/timeline"; } } diff --git a/src/main/resources/static/js/auth.js b/src/main/resources/static/js/auth.js index 1636277..09da907 100644 --- a/src/main/resources/static/js/auth.js +++ b/src/main/resources/static/js/auth.js @@ -267,7 +267,7 @@ const FitPubAuth = { */ checkAuthStatus: function() { const currentPath = window.location.pathname; - const publicPaths = ['/', '/login', '/register', '/timeline']; + const publicPaths = ['/', '/login', '/timeline']; // Skip check for public paths if (publicPaths.includes(currentPath)) { diff --git a/src/main/resources/templates/auth/register.html b/src/main/resources/templates/auth/register.html deleted file mode 100644 index 20954dc..0000000 --- a/src/main/resources/templates/auth/register.html +++ /dev/null @@ -1,290 +0,0 @@ - - - - - Register - - - -
-
-
-
-
-

- - Create Account -

- -

- Join the federated fitness community -

- - -
- - - - - - - -
- - -
- 3-30 characters. Letters, numbers, and underscores only. -
-
- Please provide a valid username. -
-
- - -
- - -
- Please provide a valid email address. -
-
- - -
- - -
- This is how your name will appear to others. -
-
- - -
- - -
- At least 8 characters. -
-
- Password must be at least 8 characters. -
-
- - -
- - -
- Passwords do not match. -
-
- - -
- -
-
- - -
-

- Already have an account? - Sign in -

-
-
-
- - -
-
-
About FitPub
-

- FitPub is a federated fitness tracking platform. Your account can interact with - users on Mastodon, Pleroma, and other ActivityPub-compatible platforms. -

-
-
-
-
-
- - - - - - -