Annet, as I state in my previous post, I had tried your approach before first posting this thread and discovered it didn't work for exactly the reasons that hamdy lists.
Massimo, thanks for the response, too. Looks like you are suggesting exactly hamdy's solution, which I have implemented, and it works. RG On Jun 3, 2:15 pm, annet <[email protected]> wrote: > > This's not working !! you need to set the message before actually logged in > > !! > > Why is that? I welcome a user who logs in so setting > auth.messages.logged_in works. When does auth.user provide you with > values for first_name and last_name in your solution? Before logging > in? > > > your solution just set the message after user is actually logged in so > > it's useless > > Cheers! > > > moreover, setting the logout message will not work, unless the index > > page itself has no flash message set or else the flash message in > > index age will override yours > > In my case (with login_next and logout_url set) both the login message > and the logout message works, so who are you to tell me that it > doesn't work. As I said: > > > It's probably not the most elegant of solutions, but in db.py I simply > > set: > > Kind regards, > > Annet.

