diff --git a/dc_website_registration/controllers/authsignup.py b/dc_website_registration/controllers/authsignup.py index 5f5b2e5..b102123 100644 --- a/dc_website_registration/controllers/authsignup.py +++ b/dc_website_registration/controllers/authsignup.py @@ -31,7 +31,7 @@ def _signup_with_values(self, token, values): raise SignupError(_('Authentication Failed.')) return uid - def do_signup(self, qcontext): + def do_custom_signup(self, qcontext): """ Shared helper that creates a res.partner out of a token """ values = dict((key, qcontext.get(key)) for key in ('login', 'name', @@ -88,7 +88,7 @@ def web_auth_signup(self, *args, **kw): if 'error' not in qcontext and request.httprequest.method == 'POST': try: - self.do_signup(qcontext) + self.do_custom_signup(qcontext) # Send an account creation confirmation email if qcontext.get('token'): user_sudo = request.env['res.users'].sudo().search([('login', '=', qcontext.get('login'))]) diff --git a/dc_website_registration/views/auth_signup_template.xml b/dc_website_registration/views/auth_signup_template.xml index 2b57940..cad9fdc 100644 --- a/dc_website_registration/views/auth_signup_template.xml +++ b/dc_website_registration/views/auth_signup_template.xml @@ -3,92 +3,96 @@