Commit cd6ff527 authored by Jérome Perrin's avatar Jérome Perrin

ERP5: minor simplification of login_account_provider.isPasswordValid

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