py4web: login and redirect to index

37 views
Skip to first unread message

Martin Weissenboeck

unread,
Feb 15, 2020, 4:31:43 AM2/15/20
to web2py-users


Next question:

I have added a new function to controllers.py:

@authenticated()
def index1():
    user = auth.get_user()
    message = T("Hello 1{first_name}".format(**user))
    return dict(message=message, user=user)

requires a login. Ok, that is the expected behavior.
But after the login py4web redirects to index and not to index1.

What is wrong?
Regards, Martin


Reply all
Reply to author
Forward
0 new messages