You should not have this:
{{if response.flash or session.flash:}}
<div class="flash">{{=response.flash if response.flash else
session.flash}}</div>
{{pass}}
This breaks the web2oy flash mechanism. This is the correct thing:
<div class="flash">{{=response.flash}}</div>
session.flash is intended as the message to be displayed after
redirect and it is automatically copied into response.flash in this
case.
On Jan 15, 11:57 am, Wes James <[email protected]> wrote:
> On return(form=auth())
>
> session.flash has the 'Email sent' text
>
> I have:
>
> {{if response.flash or session.flash:}}
> <div class="flash">{{=response.flash if response.flash else
> session.flash}}</div>
> {{pass}}
>
> in layout.html that is working with other messages, but somehow not here.
>
> I put:
>
> response.flash = {{=response.flash}}
> session.flash={{=session.flash}}
>
> in layout.html and after submitting the request_reset_password I see:
>
> response.flash = session.flash=None
>
> so something is munching session.flash.
>
> On Fri, Jan 15, 2010 at 10:25 AM, Wes James <[email protected]> wrote:
> > Seems to be working. There is no doc string for
> > request_reset_password and there is no "flash" message after putting
> > in the email and submitting - to the regard "Email sent."
>
> > I tried to find out why, I'll look some more with wingide.
>
> > thx,
>
> > -wes
>
> > On Fri, Jan 15, 2010 at 9:44 AM, mdipierro <[email protected]> wrote:
> >> I just posted a new version in trunk.
> >> I split the process in two actions "request_reset_password" and
> >> "reset_password". This allows more customization and cleaner code.
>
> >> Would you please check it once more?
>
> >> Massimo
>
> >> On Jan 15, 10:17 am, Wes James <[email protected]> wrote:
> >>> Massimo,
>
> >>> I just tested the reset_password again and it is working fine. I had
> >>> some code to remove the /user/ part of some of your functions process.
> >>> I put it back in for reset_password and it is all working great.
> >>> Thank you very much for getting this in to w2p!!
>
> >>> -wes
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "web2py-users" group.
> >> To post to this group, send email to [email protected].
> >> To unsubscribe from this group, send email to
> >> [email protected].
> >> For more options, visit this group
> >> athttp://groups.google.com/group/web2py?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en.