Commit 2ab99d2d authored by Romain Courteaud's avatar Romain Courteaud

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

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')
......
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