On Sat, 2006-12-02 at 18:56 -0800, Adam Jones wrote:
> 
> Matt Wilson wrote:
> >
> > If not, here's what I might do:
> >  * add a boolean to the tg_user table that tracks if the user has ever
> > logged in.
> >
> >  * check that boolean in the def login controller method when the log
> > in succeeds.
> >
> >  * If that boolean is false, then I set the variable to true and then I
> > can raise a redirect to the welcome aboard page.
> >
> > Is there a better way?
> 
I would use a "last login" datetime field instead of a "has_logged_in"
boolean because tracking that might have other uses later on.

-Toshio

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to