Commit 2ab99d2d by Romain Courteaud

[ERP5] login account provider: password is valid by default

1 parent 9dcd692a
......@@ -96,6 +96,9 @@ class LoginAccountProviderMixin:
If password is valid, the returned list is empty.
"""
method = self._getTypeBasedMethod('analyzePassword')
if method is None:
# Password is always valid by default
return []
return method(password, **kw)
security.declareProtected(Permissions.SetOwnPassword, 'isPasswordAlreadyUsed')
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!