diff --git a/signup_recaptcha/__manifest__.py b/signup_recaptcha/__manifest__.py index 244953a..bfc39ff 100644 --- a/signup_recaptcha/__manifest__.py +++ b/signup_recaptcha/__manifest__.py @@ -11,7 +11,7 @@ "category": "Tools", "summary": "google recaptcha V2 for signup form with server side validation", # any module necessary for this one to work correctly - "depends": ["base", "portal"], + "depends": ["base", "portal", "auth_remove_space_in_signup_and_login"], "data": [ "views/auth_signup.xml", "views/res_config.xml", diff --git a/signup_recaptcha/controllers/main.py b/signup_recaptcha/controllers/main.py index 48f49c1..1c0a021 100644 --- a/signup_recaptcha/controllers/main.py +++ b/signup_recaptcha/controllers/main.py @@ -1,7 +1,10 @@ # -*- coding: utf-8 -*- import logging -from odoo.addons.auth_signup.controllers.main import AuthSignupHome + +from odoo.addons.auth_remove_space_in_signup_and_login.controllers.auth_signup import ( + AuthSignupHome as CustomAuthSignupHome, +) from odoo.addons.auth_signup.models.res_users import SignupError from odoo.http import request from odoo import _ @@ -10,7 +13,7 @@ from odoo import _ _logger = logging.getLogger(__name__) -class AuthSignupHome(AuthSignupHome): +class AuthSignupHome(CustomAuthSignupHome): def get_auth_signup_qcontext(self): """Add recaptcha to the context""" qcontext = super(AuthSignupHome, self).get_auth_signup_qcontext()