If you're using MegaProtoUser, in your User object:
override def autologinFunc = if (Props.devMode) Full(() =>
{User.find(1).foreach(User.LogUserIn)}) else Empty
On Mon, Dec 7, 2009 at 10:17 AM, stephanos <[email protected]>wrote:
> it just occured to me that I can simply override my "is logged in"-
> condition:
>
> val ifIsLoggedIn = Props.mode match {
> case Development => If (true _, "")
> case _ => If(User.loggedIn_? _, "You must be logged in!")
> }
>
> yet this only works for explicitly hidden/disabled functionality based
> on this condition.
>
> On Dec 7, 7:09 pm, stephanos <[email protected]> wrote:
> > Hi,
> >
> > where would I look for a login()-method to login a specific user on
> > boot up (in development mode)?
> > (Aggregated this could save me a few minutes every day *g*)
> >
> > Cheers,
> > stephanos
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Lift" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<liftweb%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>
>
>
--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics
--
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en.