From a971eb7526ed4da3857a7293526ff2a4577e45a8 Mon Sep 17 00:00:00 2001 From: vincent Date: Fri, 27 Jan 2017 16:35:47 +0100 Subject: [PATCH 1/3] Module set to installable Odoo don't let signup without password --- auth_signup_verify_email/__manifest__.py | 4 ++-- auth_signup_verify_email/controllers/main.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/auth_signup_verify_email/__manifest__.py b/auth_signup_verify_email/__manifest__.py index 1f4f902c3..3908671e1 100644 --- a/auth_signup_verify_email/__manifest__.py +++ b/auth_signup_verify_email/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Verify email at signup", "summary": "Force uninvited users to use a good email for signup", - "version": "9.0.1.0.0", + "version": "10.0.1.0.0", "category": "Authentication", "website": "http://www.tecnativa.com", "author": "Antiun IngenierĂ­a S.L., " @@ -12,7 +12,7 @@ "Odoo Community Association (OCA)", "license": "AGPL-3", "application": False, - 'installable': False, + 'installable': True, "external_dependencies": { "python": [ "lxml", diff --git a/auth_signup_verify_email/controllers/main.py b/auth_signup_verify_email/controllers/main.py index 506e93744..1bd7414bd 100644 --- a/auth_signup_verify_email/controllers/main.py +++ b/auth_signup_verify_email/controllers/main.py @@ -34,7 +34,7 @@ class SignupVerifyEmail(AuthSignupHome): values["email"] = values.get("login") # Remove password - values["password"] = False + values["password"] = "password" sudo_users = (http.request.env["res.users"] .with_context(create_user=True).sudo()) From 8e7ed2413eaecc7f9ced0325b9c1eedbf12d86ea Mon Sep 17 00:00:00 2001 From: vincent Date: Fri, 27 Jan 2017 16:55:15 +0100 Subject: [PATCH 2/3] Replacing openerp with odoo --- auth_signup_verify_email/controllers/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auth_signup_verify_email/controllers/main.py b/auth_signup_verify_email/controllers/main.py index 1bd7414bd..d6f54137e 100644 --- a/auth_signup_verify_email/controllers/main.py +++ b/auth_signup_verify_email/controllers/main.py @@ -3,8 +3,8 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). import logging -from openerp import _, http -from openerp.addons.auth_signup.controllers.main import AuthSignupHome +from odoo import _, http +from odoo.addons.auth_signup.controllers.main import AuthSignupHome _logger = logging.getLogger(__name__) From 4d1abc4f3be64e9520684fd0d6499bb4636b1a5e Mon Sep 17 00:00:00 2001 From: vincent Date: Mon, 30 Jan 2017 10:40:32 +0100 Subject: [PATCH 3/3] Correction of the value of password --- auth_signup_verify_email/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth_signup_verify_email/controllers/main.py b/auth_signup_verify_email/controllers/main.py index d6f54137e..0fb5e0663 100644 --- a/auth_signup_verify_email/controllers/main.py +++ b/auth_signup_verify_email/controllers/main.py @@ -34,7 +34,7 @@ class SignupVerifyEmail(AuthSignupHome): values["email"] = values.get("login") # Remove password - values["password"] = "password" + values["password"] = "" sudo_users = (http.request.env["res.users"] .with_context(create_user=True).sudo())