Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
176dbf64c2 |
@@ -11,7 +11,7 @@
|
|||||||
"category": "Tools",
|
"category": "Tools",
|
||||||
"summary": "google recaptcha V2 for signup form with server side validation",
|
"summary": "google recaptcha V2 for signup form with server side validation",
|
||||||
# any module necessary for this one to work correctly
|
# any module necessary for this one to work correctly
|
||||||
"depends": ["base", "portal"],
|
"depends": ["base", "portal", "auth_remove_space_in_signup_and_login"],
|
||||||
"data": [
|
"data": [
|
||||||
"views/auth_signup.xml",
|
"views/auth_signup.xml",
|
||||||
"views/res_config.xml",
|
"views/res_config.xml",
|
||||||
|
@@ -1,7 +1,10 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
import logging
|
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.addons.auth_signup.models.res_users import SignupError
|
||||||
from odoo.http import request
|
from odoo.http import request
|
||||||
from odoo import _
|
from odoo import _
|
||||||
@@ -10,7 +13,7 @@ from odoo import _
|
|||||||
_logger = logging.getLogger(__name__)
|
_logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class AuthSignupHome(AuthSignupHome):
|
class AuthSignupHome(CustomAuthSignupHome):
|
||||||
def get_auth_signup_qcontext(self):
|
def get_auth_signup_qcontext(self):
|
||||||
"""Add recaptcha to the context"""
|
"""Add recaptcha to the context"""
|
||||||
qcontext = super(AuthSignupHome, self).get_auth_signup_qcontext()
|
qcontext = super(AuthSignupHome, self).get_auth_signup_qcontext()
|
||||||
|
Reference in New Issue
Block a user