From de29c969f69d869b54c0a91a096045b19e80fa24 Mon Sep 17 00:00:00 2001 From: karizma Date: Tue, 15 Oct 2024 17:02:11 +0100 Subject: [PATCH] [MIG] auth_user_case_insensitive: Migration to 18.0 --- auth_user_case_insensitive/models/res_users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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