summaryrefslogtreecommitdiff
path: root/bin/service/security.py
diff options
context:
space:
mode:
authorFabien Pinckaers <fp@tinyerp.com>2009-02-26 21:17:45 +0100
committerFabien Pinckaers <fp@tinyerp.com>2009-02-26 21:17:45 +0100
commite3bcb6b8beb80a62cf3e92c02e0acd0bb7d763b4 (patch)
tree4e91f9a9e58328b0edf5bb0f6ff5980fe83f6082 /bin/service/security.py
parentb30ff048294aa258b19f95a55b8393db3ec0f912 (diff)
bugfix_lp_331245
bzr revid: fp@tinyerp.com-20090226201745-ot01ir2gy89n18xm
Diffstat (limited to 'bin/service/security.py')
-rw-r--r--bin/service/security.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/service/security.py b/bin/service/security.py
index 449740a99ff..040d71be6e1 100644
--- a/bin/service/security.py
+++ b/bin/service/security.py
@@ -40,11 +40,10 @@ def check_super(passwd):
return True
else:
raise Exception('AccessDenied')
-
+
def check(db, uid, passwd):
if _uid_cache.get(db, {}).get(uid) == passwd:
return True
-
cr = pooler.get_db(db).cursor()
cr.execute('select count(*) from res_users where id=%s and password=%s', (int(uid), passwd))
res = cr.fetchone()[0]