Commit bf003551 authored by Vincent Pelletier's avatar Vincent Pelletier

ERP5Security: Ignore login leading- and trailing-whitespaces.

Real-world users may copy-paste logins without realising they also copy
whitespaces.
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:
......
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