[web2py] Re: Using "auth.settings.login_onaccept"

2011-11-11 Thread Rahul
Hey All, I got it working with the below code - If you need to redirect to a url - after Auth login - In your controller - (default.py) - Just add the below function and call it with "auth.settings.login_onaccept" as shown below. #-- def afterlogin(form): redirect("http:

[web2py] Re: Using "auth.settings.login_onaccept"

2011-11-11 Thread Cahya Dewanta
1. in your db.py you should define def go_log(object): redirect(URL('default','samples')) #default is the controller, samples is the action. auth.settings.login_onaccept = go_log 2. in your default.py create a action def samples(): return dict() 3. you should have created file samples