Re: [web2py] Re: user registration flash message not returned

2016-02-05 Thread Vid Ogris
No matter where I set them auth.settings seems to have no effect (not even auth.settings.register_next = URL('index', it does not redirects). I set them after defining auth but no success Is it possible that this is because of my "custom" user function? 2016-02-04 18:03 GMT+01:00 Anthony : > On

Re: [web2py] Re: user registration flash message not returned

2016-02-04 Thread Anthony
On Thursday, February 4, 2016 at 3:21:02 AM UTC-5, Yebach wrote: > > DO you suggest I change my controller completely ? > I don't know about "completely," but at least fix the incorrect part. > where do I set auth.settings_register_onaccept? in db.py? > Anywhere after Auth has been defined but

Re: [web2py] Re: user registration flash message not returned

2016-02-04 Thread Richard Vézina
Did you upgrade recently? Did you try to have a look at your layouts and change in class="flash" -> class="w2p_flash" I had problem with flash message display when I upgrade recently and that was the cause of it. Richard On Thu, Feb 4, 2016 at 4:51 AM, Vid Ogris wrote: > I have a login form o

Re: [web2py] Re: user registration flash message not returned

2016-02-04 Thread Vid Ogris
I have a login form on my first index page. Could that be the problem. No matter what I cannot get the session.flash message to be presented. 2016-02-04 9:20 GMT+01:00 Vid Ogris : > DO you suggest I change my controller completely ? > > where do I set auth.settings_register_onaccept? in db.py?

Re: [web2py] Re: user registration flash message not returned

2016-02-04 Thread Vid Ogris
DO you suggest I change my controller completely ? where do I set auth.settings_register_onaccept? in db.py? 2016-02-03 17:16 GMT+01:00 Anthony : > If you do: > > form = auth() > > then you cannot call form.process(), as auth() automatically calls > .process() itself. Also, the auth.register() m

[web2py] Re: user registration flash message not returned

2016-02-03 Thread Anthony
If you do: form = auth() then you cannot call form.process(), as auth() automatically calls .process() itself. Also, the auth.register() method automatically redirects after processing, so the rest of your code will not be reached anyway. If you want to do something after registration, specify