From c70eb0127465ca9e6d71111c170a716f0947c738 Mon Sep 17 00:00:00 2001 From: Claude Brisson Date: Sat, 13 Jul 2024 00:20:50 +0200 Subject: [PATCH] index-ffg is only for oauth --- .../src/main/kotlin/org/jeudego/pairgoth/web/AuthFilter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view-webapp/src/main/kotlin/org/jeudego/pairgoth/web/AuthFilter.kt b/view-webapp/src/main/kotlin/org/jeudego/pairgoth/web/AuthFilter.kt index befb42c..05246a1 100644 --- a/view-webapp/src/main/kotlin/org/jeudego/pairgoth/web/AuthFilter.kt +++ b/view-webapp/src/main/kotlin/org/jeudego/pairgoth/web/AuthFilter.kt @@ -57,7 +57,7 @@ class AuthFilter: Filter { chain.doFilter(req, resp) } else { // TODO - protection against brute force attacks - if (uri.endsWith("/index")) { + if (uri.endsWith("/index") && auth == "oauth") { response.sendRedirect("/index-ffg") } else { response.sendRedirect("/login")