Commit 77875a6e authored by Ivan Tyagov's avatar Ivan Tyagov

None is a valid password (i.e. it represents a reset of password).

It's job of form validation to handle this case appropriately.
parent 425d821b
......@@ -68,6 +68,11 @@ is_temp_object = context.isTempObject()\n
result_code_list = []\n
min_password_length = portal.portal_preferences.getPreferredMinPasswordLength()\n
\n
if password is None:\n
# means simply that password will be reseted in this case \n
# it\'s a valid value (i.e. it\'s job of form validation yo handle this in UI appropriately)\n
return []\n
\n
# not long enough\n
if min_password_length is not None:\n
if len(password) < min_password_length:\n
......
15
\ No newline at end of file
16
\ No newline at end of file
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