diff options
| author | Christophe Simonis <chs@openerp.com> | 2013-03-14 11:34:20 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@openerp.com> | 2013-03-14 11:34:20 +0100 |
| commit | dbed9bdb7586c14e3cf528cab7ac935c62a90a82 (patch) | |
| tree | cdd2b83835328065781d53a22a46a82905426b02 /addons/auth_signup/static/src/js | |
| parent | d4181a6625a01786b98f2b7bc36bb9d879ed1927 (diff) | |
[FIX] auth_signup: only automatically show signup if signup is enabled
bzr revid: chs@openerp.com-20130314103420-tkr1wklrf85vux7o
Diffstat (limited to 'addons/auth_signup/static/src/js')
| -rw-r--r-- | addons/auth_signup/static/src/js/auth_signup.js | 2 |
1 files changed, 1 insertions, 1 deletions
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'); |
