[FIX]auth_crypt: was storing password when passsing by res.users create, like auth_signup
bzr revid: dle@openerp.com-20130801162704-fbvghil7yir8zm8c
This commit is contained in:
parent
f551350b80
commit
b6cd0ea820
|
@ -120,7 +120,7 @@ class res_users(osv.osv):
|
|||
def set_pw(self, cr, uid, id, name, value, args, context):
|
||||
if value:
|
||||
encrypted = md5crypt(value, gen_salt())
|
||||
cr.execute('update res_users set password_crypt=%s where id=%s', (encrypted, int(id)))
|
||||
cr.execute("update res_users set password='', password_crypt=%s where id=%s", (encrypted, id))
|
||||
del value
|
||||
|
||||
def get_pw( self, cr, uid, ids, name, args, context ):
|
||||
|
|
Loading…
Reference in New Issue