summaryrefslogtreecommitdiff
path: root/addons/auth_signup/static/src
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2012-11-22 15:29:30 +0100
committerOlivier Dony <odo@openerp.com>2012-11-22 15:29:30 +0100
commitf50f0bd0897a569b5e9990b6bc0928b6d4ea59b5 (patch)
tree0608cb48bcc0f2aa93a198c7541eaeb350095af8 /addons/auth_signup/static/src
parent9b59a88a5cf04ca529f84320f2cb5b1415f722b8 (diff)
[IMP] auth_signup: do not shadow the `deferred` returned by Login.start._super()
bzr revid: odo@openerp.com-20121122142930-bq263k9p01l99sa2
Diffstat (limited to 'addons/auth_signup/static/src')
-rw-r--r--addons/auth_signup/static/src/js/auth_signup.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/addons/auth_signup/static/src/js/auth_signup.js b/addons/auth_signup/static/src/js/auth_signup.js
index 3025069dece..9642a15f5c9 100644
--- a/addons/auth_signup/static/src/js/auth_signup.js
+++ b/addons/auth_signup/static/src/js/auth_signup.js
@@ -32,9 +32,11 @@ openerp.auth_signup = function(instance) {
// in case of a signup, retrieve the user information from the token
if (self.params.db && self.params.token) {
- d = self.rpc("/auth_signup/retrieve", {dbname: self.params.db, token: self.params.token})
+ d.done(function() {
+ self.rpc("/auth_signup/retrieve", {dbname: self.params.db, token: self.params.token})
.done(self.on_token_loaded)
- .fail(self.on_token_failed);
+ .fail(self.on_token_failed)
+ });
}
return d;
},