> change_password = auth.change_password(next=URL('profile', 'settings'))
>

When the password change form is submitted, the above sets session.flash to 
"Password changed." and then redirects back to this same function. When the 
redirect request comes in, the Auth code moves session.flash into 
response.flash so it will display on the page.
 

>
> if change_email.process(formname='email_change').accepted:
> response.flash = "Email changed"
> else:
> response.flash = None
>

However, your function then includes the above code, which resets 
response.flash to None -- hence, no flash message.

You should simply be able to remove that last else clause.

Anthony

-- 
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