in  gluon/contrib/login_methods/email_auth.py,   version 1.65.5
......
        try:
            server = smtplib.SMTP(host, port)
            server.ehlo()
            server.starttls()
            server.ehlo()
            server.login(email, password)
            server.quit()
            return True
        except:
            server.quit()
            return False
    return email_auth_aux


if  smtplib.SMTP(host, port)   throw exception,  then  workflow execute the
code "server.quit()"
however,  now, server is just  a string object,   rather than  a instance of
smtplib.SMTP

Do you think it ?


-- 
张峥

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to