[IMP] res_users: update login_date instead of date at login.
bzr revid: tde@openerp.com-20120810141234-yntr5ye3evepjakg
This commit is contained in:
parent
2da4b1b3f5
commit
18f1bd6fb5
|
@ -372,7 +372,7 @@ class users(osv.osv):
|
|||
AND active FOR UPDATE NOWAIT""",
|
||||
(tools.ustr(login), tools.ustr(password)))
|
||||
cr.execute("""UPDATE res_users
|
||||
SET date = now() AT TIME ZONE 'UTC'
|
||||
SET login_date = now() AT TIME ZONE 'UTC'
|
||||
WHERE login=%s AND password=%s AND active
|
||||
RETURNING id""",
|
||||
(tools.ustr(login), tools.ustr(password)))
|
||||
|
|
Loading…
Reference in New Issue