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?

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?

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to