hey everyone,

under db.py i have:

auth.settings.login_onaccept = check_login
auth.settings.register_onaccept = check_login

def check_login(form):
    redirect(URL(c="default", f="onlogin"))
    return

and then under default, the onlogin function, checks the status of the 
subscription and displays the terms of use before allowing the user to go 
any deeper.

there is one function that i want users to be logged in to use, so i 
decorate it with "@auth.requires_login()" and of course it brings the user 
to the login screen if then aren't.  however, this one function does not 
require the status and terms of use stuff.  after login, the function can 
just run.

so, how can i know under the check_login function that either the _next was 
in the URL or something in the session or something to let me know that the 
link to this decorated function was pressed by the user so i can redirect 
properly?

thanx in advance, lucas

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to