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")