Skip to content
Snippets Groups Projects
Commit 2451dfce authored by Christophe Simonis's avatar Christophe Simonis
Browse files

[FIX] auth_signup: set request lang to created user.

parent 403ce405
No related branches found
No related tags found
No related merge requests found
......@@ -114,6 +114,7 @@ class AuthSignupHome(openerp.addons.web.controllers.main.Home):
values = dict((key, qcontext.get(key)) for key in ('login', 'name', 'password'))
assert any([k for k in values.values()]), "The form was not properly filled in."
assert values.get('password') == qcontext.get('confirm_password'), "Passwords do not match; please retype them."
values['lang'] = request.lang
self._signup_with_values(qcontext.get('token'), values)
request.cr.commit()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment