alfonsodg / demo-web2py

Apache License 2.0
0 stars 0 forks source link

doesn't send user verification email with colon in password #117

Closed alfonsodg closed 10 years ago

alfonsodg commented 10 years ago

From vinicius...@gmail.com on October 25, 2010 12:12:49

What steps will reproduce the problem? 1. Set "auth.settings.registration_requires_verification = True" (without double quotes) in myapp/models/db.py

  1. Adjust mail.settings.server and sender lines
  2. Set mail.settings.login with a password with a colon character. Example: 'myaddress@gmail.com:pass:word'
  3. Try to register a new user in http://localhost:8000/myapp/default/user/register What is the expected output? What do you see instead? Flash will show 'Unable to send email' What version of the product are you using? On what operating system? v1.87.3. Ubuntu Please provide any additional information below. I traced back and found line 575 in /web2py/gluon/tools.py I changed it from: server.login(_self.settings.login.split(':')) To: server.login(_self.settings.login.split(':',1))

And it worked fine.

Original issue: http://code.google.com/p/web2py/issues/detail?id=118

alfonsodg commented 10 years ago

From massimod...@gmail.com on October 25, 2010 10:29:19

Thanks.

Status: Fixed