[FIX] auth_signup: correct authentification after successfull signup
bzr revid: chs@openerp.com-20140213190845-azch00bppzp1pk0d
This commit is contained in:
parent
325ad57a00
commit
c64a762d06
|
@ -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.'))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue