You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Jason Baragry <Ja...@nr.no> on 2003/06/05 15:37:56 UTC

Combine Index and Login Page?

G'Day,

I'd like to have a first/default page lets the user login or, if logged
in, has pointers off to other pages.

My .vm has the following

#if ( $user.hasLoggedIn() )

  // pointers to other pages

#else

  // form to call the LoginUser action

#end


However, after I login it keeps returning false for the
$user.hasLoggedIn() check and showing the login form.

What am I missing?

thanks

Jason



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


RE: Combine Index and Login Page?

Posted by James Cooper <ja...@maxware.nl>.
Personally I'd have that information in a screen class. But I guess you may
not have done something like the following

gUser = TurbineSecurity.getAuthenticatedUser(aUserName, aPassword);
data.setUser(gUser);
gUser.setHasLoggedIn(new Boolean(true));
data.save();

then save the information to the RunData object. You should be ok from there
on in.


-----Original Message-----
From: Jason Baragry [mailto:Jason.Baragry@nr.no]
Sent: 05 June 2003 15:38
To: turbine-user
Subject: Combine Index and Login Page?


G'Day,

I'd like to have a first/default page lets the user login or, if logged
in, has pointers off to other pages.

My .vm has the following

#if ( $user.hasLoggedIn() )

  // pointers to other pages

#else

  // form to call the LoginUser action

#end


However, after I login it keeps returning false for the
$user.hasLoggedIn() check and showing the login form.

What am I missing?

thanks

Jason



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org