From dbed9bdb7586c14e3cf528cab7ac935c62a90a82 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Thu, 14 Mar 2013 11:34:20 +0100 Subject: [PATCH] [FIX] auth_signup: only automatically show signup if signup is enabled bzr revid: chs@openerp.com-20130314103420-tkr1wklrf85vux7o --- addons/auth_signup/static/src/js/auth_signup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/auth_signup/static/src/js/auth_signup.js b/addons/auth_signup/static/src/js/auth_signup.js index fe071fde55d..bbaf907c625 100644 --- a/addons/auth_signup/static/src/js/auth_signup.js +++ b/addons/auth_signup/static/src/js/auth_signup.js @@ -56,7 +56,7 @@ openerp.auth_signup = function(instance) { self.rpc("/auth_signup/get_config", {dbname: dbname}).done(function(result) { self.signup_enabled = result.signup; self.reset_password_enabled = result.reset_password; - if (self.$("form input[name=login]").val()){ + if (!self.signup_enabled || self.$("form input[name=login]").val()){ self.set('login_mode', 'default'); } else { self.set('login_mode', 'signup');