diff options
| author | Arnaud Pineux <api@openerp.com> | 2012-11-16 11:52:31 +0100 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2012-11-16 11:52:31 +0100 |
| commit | ebd61d8c00fd512e9727d6d292b8f24e76ac91e6 (patch) | |
| tree | 1ef9f0f1ba0ac8ec48be8c047c28ed54b20982e0 /addons | |
| parent | fb1c81a9d31c55b574197bd1ec733e627c77c5e0 (diff) | |
[REVERT] base_crypt: incorrect/unreviewed fix in rev 8058
bzr revid: odo@openerp.com-20121116105231-tujpbbhcd2g8xkfu
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/base_crypt/crypt.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/addons/base_crypt/crypt.py b/addons/base_crypt/crypt.py index a1c7519958c..14e029eb988 100644 --- a/addons/base_crypt/crypt.py +++ b/addons/base_crypt/crypt.py @@ -201,20 +201,6 @@ class users(osv.osv): # Return early if no one has a login name like that. return False - # Check if the authentification is made with OpenID. In this case, don't encrypt the password - cr.execute('SELECT id FROM ir_module_module WHERE name = \'auth_openid\' and state = \'installed\'') - if cr.rowcount: - cr.execute( 'SELECT password, id FROM res_users WHERE login=%s AND openid_key = %s AND active', - (login.encode('utf-8'),password.encode('utf-8'))) - if cr.rowcount: - # Check if the encrypted password matches against the one in the db. - cr.execute("""UPDATE res_users SET login_date=now() AT TIME ZONE 'UTC' WHERE id=%s AND openid_key=%s AND active RETURNING id""", - (int(id), password.encode('utf-8'))) - res = cr.fetchone() - cr.commit() - if res: - return res[0] - stored_pw = self.maybe_encrypt(cr, stored_pw, id) if not stored_pw: |
