found it. I didn't use auth.settings.request_reset_password_next = '/app/default/login' and it was getting a double redirected through /user/.... and I was thinking I was getting around /user/ - missed this one.
thx, -wes On Fri, Jan 15, 2010 at 2:37 PM, Wes James <[email protected]> wrote: > I created a new app and forgot I had: > > auth.settings.verify_email_next = '/app/default/login' > > and it went to my apps page (one I've been getting no messages on) > with no message. I then clicked on the back button and it when to the > default default/user/login for the test app I was working on and the > message appeared for my email verification. > > The setting above must be introducing an extra direct?? > > I just did a password reset and that showed the flash message also > about "Email sent" for passwor reset request. I must have some extra > redirects or using the auth.settings.verify_email_next is not passing > the message along. > > I'll keep looking. > > thx, > > -wes > > On Fri, Jan 15, 2010 at 1:53 PM, mdipierro <[email protected]> wrote: >> the lack of messages, every time I have seen it, it was always caused >> by a double redirect. Are you using user() action or custom login/ >> logout/etc actions? >> >> On Jan 15, 2:15 pm, Wes James <[email protected]> wrote: >>> I must have done that at some point when I was trying to remove /user/ >>> from the path (maybe routes would be batter for that) Anyway I put >>> the code back to: >>> >>> {{if response.flash:}} >>> <div class="flash">{{=response.flash}}</div> >>> {{pass}} >>> >>> but there is no message. I'll peak at this with wingide. >>> >>> -wes >>> >>> On Fri, Jan 15, 2010 at 10:59 AM, mdipierro <[email protected]> wrote: >>> > 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 >>> > 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. >> >> >> >> >
-- 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.

