projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
669f68b
)
[IMP] res.users: redundant test on passwd removed
author
Olivier Dony
<odo@openerp.com>
Mon, 10 Jan 2011 13:52:26 +0000
(14:52 +0100)
committer
Olivier Dony
<odo@openerp.com>
Mon, 10 Jan 2011 13:52:26 +0000
(14:52 +0100)
bzr revid: odo@openerp.com-
20110110135226
-igdn38c37ts2lvbe
bin/addons/base/res/res_user.py
patch
|
blob
|
history
diff --git
a/bin/addons/base/res/res_user.py
b/bin/addons/base/res/res_user.py
index
519cb47
..
261ec69
100644
(file)
--- a/
bin/addons/base/res/res_user.py
+++ b/
bin/addons/base/res/res_user.py
@@
-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: