Matt Wilson wrote: > I provide the user's account and password outside of the website. On a > user's first login, I want to put up a welcome screen. > > Is there already support in the TG identity model to detect a user's > first login?
None that I am aware off. Pretty much everything that is tracked from one action to the next gets stored somewhere in the db, so if there isn't anything in it then it is probably safe to assume it doesn't exist. > > 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? That seems pretty good to me. -Adam > > TIA > > Matt --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" 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/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

