Correct password handling

password field is set to None when empty so it is requested with a
message

darcs-hash:20061026174712-86b55-0e12db52c5410a9ea259647bc341af6c0e5f161b.gz
This commit is contained in:
David Rousselie
2006-10-26 19:47:12 +02:00
parent 24f93cba27
commit 75cb2cd909

View File

@@ -568,10 +568,10 @@ class MailComponent(Component):
else:
login = u""
if x.fields.has_key("password"):
if x.fields.has_key("password") and x.fields["password"].value != "":
password = x.fields["password"].value
else:
password = u""
password = None
store_password = x.fields.has_key("store_password") \
and (x.fields["store_password"].value == "1")