[FIX] auth_signup: correct authentification after successfull signup

bzr revid: chs@openerp.com-20140213190845-azch00bppzp1pk0d
This commit is contained in:
Christophe Simonis 2014-02-13 20:08:45 +01:00
parent 325ad57a00
commit c64a762d06
1 changed files with 2 additions and 1 deletions

View File

@ -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.'))