[FIX] http: correct authentication via JSON-RPC.

Since 31d817e, we rotate then session at login/logout.
Unfortunatly, `openerpframework.js` does not support session id change
at authentication and keep old one.

In order to keep compatibility with existing js clients (including 7.0
ones), we do not rotate the session at authentication.

Fixes #6948
Closes #6949
This commit is contained in:
Alexis de Lattre 2015-06-03 23:52:50 +02:00 committed by Christophe Simonis
parent 2948ed954b
commit 96135fa785
1 changed files with 0 additions and 1 deletions

View File

@ -955,7 +955,6 @@ class OpenERPSession(werkzeug.contrib.sessions.Session):
uid = dispatch_rpc('common', 'authenticate', [db, login, password, env])
else:
security.check(db, uid, password)
self.rotate = True
self.db = db
self.uid = uid
self.login = login