Commit 6bd51ae2 authored by Jérome Perrin's avatar Jérome Perrin

ERP5: minor simplification of login_account_provider.isPasswordValid

parent 4002edf3
......@@ -83,10 +83,7 @@ class LoginAccountProviderMixin:
"""
Is password valid?
"""
result_code_list = self.analyzePassword(password, **kw)
if not len(result_code_list):
return True
return False
return not len(self.analyzePassword(password, **kw))
security.declareProtected(Permissions.SetOwnPassword, 'analyzePassword')
def analyzePassword(self, password, **kw):
......
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