Re: [web2py] Re: Enable request_reset_password

2011-09-28 Thread Kenneth Lundström
I´m still trying to troubleshoot this error. If I look at auth.settings.mailer it says it is empty. How come? In my models file if have auth.settings.mailer=mail I added to tools.py in gluon: return self.settings.mailer under def request_reset_password( so no wonder it says function is

Re: [web2py] Re: Enable request_reset_password

2011-09-28 Thread Anthony
Have you confirmed the 'mail' is not None in your model file? On Wednesday, September 28, 2011 5:11:00 AM UTC-4, Kenneth wrote: I´m still trying to troubleshoot this error. If I look at auth.settings.mailer it says it is empty. How come? In my models file if have auth.settings.mailer=mail

Re: [web2py] Re: Enable request_reset_password

2011-09-28 Thread Kenneth Lundström
Yes, a couple of rows before that I have mail=Mail(). But now I found it. I have splitted db.py into four different files. For some strange reason I had auth=Auth(globals(),db) twice, I removed the second one and now everything works. Thanks to everyone helping me. Kenneth Have you

[web2py] Re: Enable request_reset_password

2011-09-22 Thread Anthony
Is your app a CAS provider? I think that will automatically disable request_reset_password. Anthony On Thursday, September 22, 2011 8:05:52 PM UTC-4, Kenneth wrote: Hi list members, I have disabled the request_reset_password function somehow. What different ways are there to disable this?

[web2py] Re: Enable request_reset_password

2011-09-22 Thread Anthony
More likely, perhaps you don't have Mail set up (i.e., auth.settings.mailer) -- without that, you'll get a flash message saying the function is disabled. Anthony On Thursday, September 22, 2011 9:05:53 PM UTC-4, Anthony wrote: Is your app a CAS provider? I think that will automatically

Re: [web2py] Re: Enable request_reset_password

2011-09-22 Thread Kenneth Lundström
I have: auth=Auth(globals(),db) # authentication/authorization mail=Mail()# mailer mail.settings.sender='m...@email.address.com' # your email mail.settings.server='logging' #calhost:25'# your SMTP server #