[FIX] Case insensitive user names in LDAP create duplicate users in OpenERP
lp bug: https://launchpad.net/bugs/985606 fixed bzr revid: stefan@therp.nl-20120801122648-14mqu4x7xb3gd7p5
This commit is contained in:
parent
e845e2350c
commit
eca351d07a
|
@ -180,7 +180,7 @@ class CompanyLDAP(osv.osv):
|
|||
"""
|
||||
|
||||
user_id = False
|
||||
login = tools.ustr(login)
|
||||
login = tools.ustr(login.lower())
|
||||
cr.execute("SELECT id, active FROM res_users WHERE login=%s", (login,))
|
||||
res = cr.fetchone()
|
||||
if res:
|
||||
|
|
Loading…
Reference in New Issue