diff --git a/auth_user_case_insensitive/models/res_users.py b/auth_user_case_insensitive/models/res_users.py index ed4153da8..6bce0dea6 100644 --- a/auth_user_case_insensitive/models/res_users.py +++ b/auth_user_case_insensitive/models/res_users.py @@ -12,7 +12,7 @@ class ResUsers(models.Model): def _login(cls, db, credential, user_agent_env): """Overload _login to lowercase the `login` before passing to the super.""" - credential['credential'] = credential['login'].lower() + credential['login'] = credential['login'].lower() return super()._login(db, credential, user_agent_env=user_agent_env) @api.model_create_multi