[web2py] Re: Displaying a message following auth.requires_login() redirect

2012-08-21 Thread Rob Goldsmith
That's perfect, thanks Anthony. On Tuesday, 21 August 2012 00:00:16 UTC+1, Anthony wrote: > > Maybe try: > > def failed_authentication(url): > session.flash = "You must be logged in to view this page" > redirect(url) > auth.settings.on_failed_authentication = failed_authentication > > Ant

[web2py] Re: Displaying a message following auth.requires_login() redirect

2012-08-20 Thread Anthony
Maybe try: def failed_authentication(url): session.flash = "You must be logged in to view this page" redirect(url) auth.settings.on_failed_authentication = failed_authentication Anthony On Monday, August 20, 2012 5:48:33 AM UTC-4, Rob Goldsmith wrote: > > Is it possible to display a mess