diff options
Diffstat (limited to 'src/com/p4square/grow/frontend')
| -rw-r--r-- | src/com/p4square/grow/frontend/GrowFrontend.java | 2 | ||||
| -rw-r--r-- | src/com/p4square/grow/frontend/LoginFormAuthenticator.java | 4 | 
2 files changed, 6 insertions, 0 deletions
| diff --git a/src/com/p4square/grow/frontend/GrowFrontend.java b/src/com/p4square/grow/frontend/GrowFrontend.java index 02c2137..f8cbdd2 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); diff --git a/src/com/p4square/grow/frontend/LoginFormAuthenticator.java b/src/com/p4square/grow/frontend/LoginFormAuthenticator.java index ef0abba..d89ebc9 100644 --- a/src/com/p4square/grow/frontend/LoginFormAuthenticator.java +++ b/src/com/p4square/grow/frontend/LoginFormAuthenticator.java @@ -45,6 +45,10 @@ public class LoginFormAuthenticator extends Authenticator {      public void setLoginPostUrl(String url) {          mLoginPostUrl = url;      } +     +    public void setDefaultPage(String url) { +        mDefaultRedirect = url; +    }      @Override      protected int beforeHandle(Request request, Response response) { | 
