Redirecting certain users after login

24 views
Skip to first unread message

1dolor1

unread,
May 20, 2016, 2:34:08 PM5/20/16
to web2py-users
So I searched the web and found info how to redirect user to a certain page when they log in
by adding referred_actions=None to {{='auth' in globals() and auth.navbar(mode="dropdown") or  '' }} in layout.html
Then adding auth.settings.login next = URL('page') in db.py

But how would one go about if you want to redirect certains user by id or username to certain pages when they login?

Dave S

unread,
May 20, 2016, 8:57:11 PM5/20/16
to web2py-users
Does Ron's thread help?  Here's one of the key posts:

/dps
 
Reply all
Reply to author
Forward
0 new messages