[web2py] Re: LOAD auth.change_password form and over-ride the Redirect on success

2011-03-03 Thread Ab...
Sorry, this is my def changePassword(): def changePassword(): change_password = auth.change_password() if change_password.accepts(request.vars, session, onvalidation=validateChangePassword): response.flash = "Password updated" return change_password

[web2py] Re: LOAD auth.change_password form and over-ride the Redirect on success

2011-03-03 Thread Ab...
Okay, I modified my code as follows: # # Controller: ACCOUNT # def changePassword(): change_password = auth.change_password() if change_password.accepts(request.vars, session, onvalidation=validateChangePassword): response.flash = "Password

[web2py] Re: LOAD auth.change_password form and over-ride the Redirect on success

2011-02-25 Thread Carlos
Isn't the redirect automatically happening via auth.settings.change_password_next?, if this is the case, I believe you would need session.flash. Why are you using javascript's "document.location=..." instead of web2py's redirect?. The session.flash might be lost because of these javascript red

[web2py] Re: LOAD auth.change_password form and over-ride the Redirect on success

2011-02-25 Thread Ab...
Carlos, neither of them are working. There is no redirect so session.flash won't work. I'm using AJAX to submit n get response for this form. I confirmed that response.flash indeed has the "Password Updated" value by printing it to the console but I just don't see it in the browser. What might I b

[web2py] Re: LOAD auth.change_password form and over-ride the Redirect on success

2011-02-24 Thread Carlos
Hi Abhinav, Instead of response.flash, for redirections try session.flash. Carlos

[web2py] Re: LOAD auth.change_password form and over-ride the Redirect on success

2011-02-23 Thread Abhinav Sood
Okay, looks like I solved my problem by setting auth.settings.change_password_next = request.url But now, I can't do a response.flash! Any directions?