From a574ce71bf5a479f7ce7ebb825dc4338768681ca Mon Sep 17 00:00:00 2001 From: niv-openerp Date: Fri, 21 Jun 2013 14:45:34 +0200 Subject: [PATCH] Small refactoring bzr revid: nicolas.vanhoren@openerp.com-20130621124534-bvsjihld3j9vqpkw --- addons/auth_signup/controllers/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/auth_signup/controllers/main.py b/addons/auth_signup/controllers/main.py index e1e1fa5851a..8c61af1f03c 100644 --- a/addons/auth_signup/controllers/main.py +++ b/addons/auth_signup/controllers/main.py @@ -30,7 +30,7 @@ _logger = logging.getLogger(__name__) class Controller(http.Controller): - @http.route('/auth_signup/get_config', type='json', authentication="nodb") + @http.route('/auth_signup/get_config', type='json', auth="none") def get_config(self, dbname): """ retrieve the module config (which features are enabled) for the login page """ registry = RegistryManager.get(dbname) @@ -42,7 +42,7 @@ class Controller(http.Controller): } return config - @http.route('/auth_signup/retrieve', type='json', authentication="auth") + @http.route('/auth_signup/retrieve', type='json', auth="user") def retrieve(self, dbname, token): """ retrieve the user info (name, login or email) corresponding to a signup token """ registry = RegistryManager.get(dbname) @@ -51,7 +51,7 @@ class Controller(http.Controller): user_info = res_partner.signup_retrieve_info(cr, openerp.SUPERUSER_ID, token) return user_info - @http.route('/auth_signup/signup', type='json', authentication="auth") + @http.route('/auth_signup/signup', type='json', auth="user") def signup(self, dbname, token, **values): """ sign up a user (new or existing)""" try: @@ -66,7 +66,7 @@ class Controller(http.Controller): res_users = registry.get('res.users') res_users.signup(cr, openerp.SUPERUSER_ID, values, token) - @http.route('/auth_signup/reset_password', type='json', authentication="auth") + @http.route('/auth_signup/reset_password', type='json', auth="user") def reset_password(self, dbname, login): """ retrieve user, and perform reset password """ registry = RegistryManager.get(dbname)