One thing to check is if your login page is stateless.  If its not, and you
attempt to login using your login page some time after your initially
loaded the page in the browser, then the original login page displayed
would have timed out and the attempted login wont succeed.  Ive seen this
behavior a couple of times now (after which we fix the Login Page and make
it stateless)


On Wed, Oct 2, 2013 at 1:28 PM, shimin_q <[email protected]> wrote:

> Hello,
>
> My homepage URL is "http://<server ip>/awol", and it is linked to
> MainPage.html and MainPage.java.  I also have a HomePage.html/HomePage.java
> that is essentially a login page and contains a LoginForm.
>
>         public Class<? extends Page> getHomePage() {
>                 return MainPage.class;
>         }
>
>         @Override
>         protected Class<? extends WebPage> getSignInPageClass() {
>                 return HomePage.class;
>         }
>
>  I use continueToOriginalDestination() once LoginForm submitted
> username/password and was authenticated:
>
>         protected void onSubmit() {
>                 Login login = getModelObject();
>
>                 AuthenticatedWebSession session =
> AuthenticatedWebSession.get();
>                 if (session.authenticate(login.getUsername(),
> login.getPassword())) {
>                         logger.debug("authentication successful");
>                         this.continueToOriginalDestination();
>                 }
>                 else {
>                         error("Invalid credentials");
>                 }
>         }
>
> I am expecting that continueToOriginalDestination would take me to the
> MainPage after user successfully logged in, but intermittently,
> continueToOriginalDestination() just stays on the HomePage (with the
> LoginForm) even after the user name/password is authenticated.
>
> What could be the issue?  Please help!!
>
> Thanks!!
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/continueToOriginalDestination-issue-tp4661654.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to