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
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
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
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
Hi Abhinav,
Instead of response.flash, for redirections try session.flash.
Carlos
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?
6 matches
Mail list logo