Skip to content

Commit 6d4a813

Browse files
[MIG] auth_user_case_insensitive: Migration to 19.0
1 parent f268f4f commit 6d4a813

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

auth_user_case_insensitive/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{
55
"name": "Case Insensitive Logins",
66
"summary": "Makes the user login field case insensitive",
7-
"version": "18.0.1.0.0",
7+
"version": "19.0.1.0.0",
88
"category": "Authentication",
99
"website": "https://github.com/OCA/server-auth",
1010
"author": "LasLabs, Odoo Community Association (OCA)",

auth_user_case_insensitive/models/res_users.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
class ResUsers(models.Model):
99
_inherit = "res.users"
1010

11-
@classmethod
12-
def _login(cls, db, credential, user_agent_env):
11+
def _login(self, credential, user_agent_env):
1312
"""Overload _login to lowercase the `login` before passing to the
1413
super."""
1514
if isinstance(credential, dict) and credential.get("login"):

auth_user_case_insensitive/tests/test_res_users.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ def test_login_login_is_lowercased(self):
4747
rec_id = self.env.ref("base.user_admin") # Get the admin user reference
4848
credentials = {"type": "password", "login": "AdMiN", "password": "admin"}
4949
res_id = self.model_obj._login(
50-
self.env.cr.dbname,
5150
credentials,
5251
{"interactive": True},
5352
)

0 commit comments

Comments
 (0)