Can you branch in the user() function?

def user():
    if request.function=='login' and user_is_special:
        redirect('special_login')

Or it might be easier to do it in the view:

{{if user_is_special:}}
    {{=form.custom.begin}}
    ...
    {{=form.custom.end}}
{{else}}
    {{=form}}
{{pass}}

Reply via email to