Hi, This question is about the redirection for reset_password function.
my workflow is i click on the request_reset_password button which sends an email to the user with the reset_password url. I am using version 2.9 the problem is the reset_password form redirects to login page even before loading. when I click on the url from mail, it directly redirects to the login page. I know , I have already faced this redirection problem and this forum have helped me solve it before, but its not working this time. https://groups.google.com/forum/#!searchin/web2py/logout$20error/web2py/Zm-bpXVdwVs/HD4vjEK1FwMJ def request_reset_password(): form = auth.request_reset_password() return dict(form=form) def reset_password(): try: form = auth.reset_password() return dict(form=form) except HTTP, h: logger.error(traceback.format_exc()) raise h these are the two functions that i use for password reset process. and these are the respective errros i receive 2015-03-13 05:50:32,679 - ERROR - app - Traceback (most recent call last): File "/home/ajith/work/repositories/office/trustvouch/trustvouch_fe/trunk/applications/app/controllers/default.py", line 776, in request_reset_password form = auth.request_reset_password() File "/home/ajith/work/repositories/office/trustvouch/trustvouch_fe/trunk/gluon/tools.py", line 3140, in request_reset_password redirect(next, client_side=self.settings.client_side) File "/home/ajith/work/repositories/office/trustvouch/trustvouch_fe/trunk/gluon/http.py", line 173, in redirect **headers) HTTP: 303 SEE OTHER 2015-03-13 05:51:06,041 - ERROR - app - Traceback (most recent call last): File "/home/ajith/work/repositories/office/trustvouch/trustvouch_fe/trunk/applications/app/controllers/default.py", line 765, in reset_password form = auth.reset_password() File "/home/ajith/work/repositories/office/trustvouch/trustvouch_fe/trunk/gluon/tools.py", line 3038, in reset_password redirect(next, client_side=self.settings.client_side) File "/home/ajith/work/repositories/office/trustvouch/trustvouch_fe/trunk/gluon/http.py", line 173, in redirect **headers) HTTP: 303 SEE OTHER last time it was said that it is causing due to internal redirection and i need to catch it with an http exception. but dont know whats going wrong. {{block center}} <body class="form full" > <div class="wrapper step2"> <header> <h2>TrustID</h2> </header> <section> <div class="form-login"> <div class="box-form"> <form action="" enctype="multipart/form-data" method="post" name="reset_password" id="reset_password"> <input type="password" id="no_table_new_password" name="new_password" placeholder="New Password" class="text-input focus" required /> <input type="password" id="no_table_new_password2" name="new_password2" placeholder="Confirm Password" class="text-input focus" required /> <input type="submit" name="submit" class="button big green" id="submit" value="Reset Password"> {{=form.custom.end}} </div> </div> </section> </div> </body> {{end}} the form just redirects to login page <body class="form full" > 5 <div class="wrapper step2"> 6 <header> 7 <h2>TrustID</h2> 8 </header> 9 <section> 10 <div class="form-login"> 11 <div class="box-form"> 12 <form action="" enctype="multipart/form-data" method="post" name="request_reset_password" id="request_reset_password"> 14 <input type="text" id="tv_auth_users_email" name="email" placeholder="email" class="text-input focus" required /> <em>Please check your spam settings.</em> <input type="submit" name="submit" class="button big green" id="submit" value="Request Password Reset"> <p>Go back to <a href="{{=URL('default' ,'login')}}">login</a>.</p> 23 {{=form.custom.end}} 24 </div> 25 </div> 26 </section> 27 </div> 28 </body> what could be possibly wrong -- 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/d/optout.