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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user