Commit af8ffba2 authored by Aurel's avatar Aurel

uptate to follow new naming of field

remove check which are done by the form
parent 6b277281
...@@ -255,8 +255,8 @@ class PasswordTool(BaseTool): ...@@ -255,8 +255,8 @@ class PasswordTool(BaseTool):
self._password_request_dict.pop(key) self._password_request_dict.pop(key)
def changeUserPassword(self, password, password_confirmation, def changeUserPassword(self, password, password_key, password_confirm=None,
password_key, user_login=None, REQUEST=None): user_login=None, REQUEST=None, **kw):
""" """
Reset the password for a given login Reset the password for a given login
""" """
...@@ -279,10 +279,6 @@ class PasswordTool(BaseTool): ...@@ -279,10 +279,6 @@ class PasswordTool(BaseTool):
msg = translateString("Bad login provided.") msg = translateString("Bad login provided.")
elif current_date > expiration_date: elif current_date > expiration_date:
msg = translateString("Date has expire.") msg = translateString("Date has expire.")
elif not password:
msg = translateString("Password must be entered.")
elif password != password_confirmation:
msg = translateString("Passwords do not match.")
if msg is not None: if msg is not None:
if REQUEST is not None: if REQUEST is not None:
parameter = urlencode(dict(portal_status_message=msg)) parameter = urlencode(dict(portal_status_message=msg))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment