From 04da9cbfa3d9ef5620d6b9d569606cc073c30320 Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Sun, 1 Sep 2013 00:10:29 -0700 Subject: Fixing default redirect --- src/com/p4square/grow/frontend/GrowFrontend.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/com/p4square/grow/frontend/GrowFrontend.java') diff --git a/src/com/p4square/grow/frontend/GrowFrontend.java b/src/com/p4square/grow/frontend/GrowFrontend.java index ac3db98..37f0dea 100644 --- a/src/com/p4square/grow/frontend/GrowFrontend.java +++ b/src/com/p4square/grow/frontend/GrowFrontend.java @@ -117,6 +117,7 @@ public class GrowFrontend extends FMFacade { final Context context = getContext(); final String loginPage = getConfig().getString("dynamicRoot", "") + "/login.html"; final String loginPost = getConfig().getString("dynamicRoot", "") + "/account/authenticate"; + final String defaultPage = getConfig().getString("dynamicRoot", "") + "/index.html"; // This is used to check for an existing session SessionCheckingAuthenticator sessionChk = new SessionCheckingAuthenticator(context, true); @@ -126,6 +127,7 @@ public class GrowFrontend extends FMFacade { LoginFormAuthenticator loginAuth = new LoginFormAuthenticator(context, false, f1Verifier); loginAuth.setLoginFormUrl(loginPage); loginAuth.setLoginPostUrl(loginPost); + loginAuth.setDefaultPage(defaultPage); // This is used to create a new session for a newly authenticated user. SessionCreatingAuthenticator sessionCreate = new SessionCreatingAuthenticator(context); -- cgit v1.2.3