Browse Source

Merge pull request #718 from sharkende/10.0

Migration of auth_signup_verify_email to 10.0
pull/757/head
Moises Lopez - https://www.vauxoo.com/ 8 years ago
committed by GitHub
parent
commit
385e9b7b2c
  1. 4
      auth_signup_verify_email/__manifest__.py
  2. 6
      auth_signup_verify_email/controllers/main.py

4
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",

6
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__)
@ -34,7 +34,7 @@ class SignupVerifyEmail(AuthSignupHome):
values["email"] = values.get("login")
# Remove password
values["password"] = False
values["password"] = ""
sudo_users = (http.request.env["res.users"]
.with_context(create_user=True).sudo())

Loading…
Cancel
Save