Commit bf003551 by Vincent Pelletier

ERP5Security: Ignore login leading- and trailing-whitespaces.

Real-world users may copy-paste logins without realising they also copy
whitespaces.
1 parent 0a9a8ef5
......@@ -133,6 +133,7 @@ class ERP5UserManager(BasePlugin):
if not login or not (password or ignore_password):
return None
login = login.strip()
user_list = self.getUserByLogin(login)
if not user_list:
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!