It looks like your mail.settings.login = keydata['email_pass'] may be just a password. I'm guessing, it depends on what the value of 'email_pass' is.
It needs to be the full user@domain:password, like this: name@maildomain:password On Monday, January 26, 2015 at 1:04:05 PM UTC-7, Ian W. Scott wrote: > > When I click on "Lost Password" in the user menu I just get a page with a > blank body. The url to which I'm forwarded seems right ( > http://ianwscott.webfactional.com/paideia/default/user/request_reset_password?_next=/paideia/default/index) > > but there's no form on the page. It's as if the page controller is > returning an empty dict. But I'm not getting any error message either. > > I've looked through the page source and it's not that the form is > hidden. It's just not being included in the page response. Other > default/user forms are produced just fine: login, change_password, etc. So > I can't figure out why request_reset_password returns nothing. > > Since there's no error ticket it's very difficult for me to debug. Any > suggestions? > > Here is my setup for mail and the relevant auth settings (from > controllers/db.py): > > mail = Mail() > mail.settings.server = keydata['email_sender'] # 'logging' # SMTP server > mail.settings.sender = keydata['email_address'] # email > mail.settings.login = keydata['email_pass'] # credentials or None > current.mail = mail > > > auth.settings.mailer = mail # for user email > verification > auth.settings.registration_requires_verification = False > auth.settings.registration_requires_approval = False > auth.messages.verify_email = 'Click on the link http://' \ > + request.env.http_host + URL('default', 'user', args=['verify_email' > ]) \ > + '/%(key)s to verify your email' > auth.settings.reset_password_requires_verification = True > auth.messages.reset_password = 'Click on the link http://' \ > + request.env.http_host + URL('default', 'user', args=[ > 'reset_password'])\ > + '/%(key)s to reset your password' > > > > -- 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/d/optout.