[IMP] res.users: redundant test on passwd removed

bzr revid: odo@openerp.com-20110110135226-igdn38c37ts2lvbe
This commit is contained in:
Olivier Dony 2011-01-10 14:52:26 +01:00
parent 669f68bb04
commit bd4da77b3c
1 changed files with 1 additions and 2 deletions

View File

@ -460,8 +460,7 @@ class users(osv.osv):
def check(self, db, uid, passwd):
if not passwd:
return False
cached_pass = self._uid_cache.get(db, {}).get(uid)
if (cached_pass is not None) and cached_pass == passwd:
if self._uid_cache.get(db, {}).get(uid) == passwd:
return True
cr = pooler.get_db(db).cursor()
try: