From c64a762d06de76ee47356922479eea70694712d9 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Thu, 13 Feb 2014 20:08:45 +0100 Subject: [PATCH] [FIX] auth_signup: correct authentification after successfull signup bzr revid: chs@openerp.com-20140213190845-azch00bppzp1pk0d --- addons/auth_signup/controllers/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/auth_signup/controllers/main.py b/addons/auth_signup/controllers/main.py index ba044530468..16baa97d018 100644 --- a/addons/auth_signup/controllers/main.py +++ b/addons/auth_signup/controllers/main.py @@ -96,8 +96,9 @@ class AuthSignup(openerp.addons.web.controllers.main.Home): def _signup_with_values(self, token, values): db, login, password = request.registry['res.users'].signup(request.cr, openerp.SUPERUSER_ID, values, token) + request.cr.commit() # as authenticate will use its own cursor we need to commit the current transaction uid = request.session.authenticate(db, login, password) - if uid is not False: + if not uid: raise SignupError(_('Authentification Failed.'))