You can customize the login message via auth.messages.logged_in. However, you won't be able to include the username in that message because it will not be known until after the login. Instead, you could append a callback function to the auth.settings.login_onaccept list, and in that function, you could explicitly set:
session.flash = 'Welcome %s' % auth.user.username Anthony On Monday, June 18, 2018 at 9:48:04 AM UTC-4, Ayron Rangel wrote: > > Guys, > > How do I change the response.flash message when I log in? > > Every time when I'm login, appears just "Logged In", i want to change this > message to Welcome ' username'. > > Regards, > Ayron Rangel > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

