In db.py I set custom login and logged_out messages: def set_login_message(form): session.logged_out_message='Succesvol uitgelogd, tot ziens ' + auth.user.first_name + ' ' + auth.user.last_name session.flash=T('Succesvol ingelogd, welkom %(first_name)s % (last_name)s', dict(first_name=auth.user.first_name,last_name=auth.user.last_name))
auth.settings.login_onaccept=set_login_message auth.messages.logged_out=session.logged_out_message The problem is that when the user tries to access a function to which he has no access he is being logged out and the logged_out message gets displayed. This message doesn't give the user any clues as to why he is being logged out. Setting this message: auth.messages.access_denied='U heeft geen toegang tot deze functie, u bent uitgelogd' ... doesn't solve the problem, the logged_out_message gets displayed. Is there a way to solve this problem? Kind regards, Annet