[IMP] auth_signup: do not shadow the `deferred` returned by Login.start._super()
bzr revid: odo@openerp.com-20121122142930-bq263k9p01l99sa2
This commit is contained in:
parent
9b59a88a5c
commit
f50f0bd089
|
@ -32,9 +32,11 @@ openerp.auth_signup = function(instance) {
|
||||||
|
|
||||||
// in case of a signup, retrieve the user information from the token
|
// in case of a signup, retrieve the user information from the token
|
||||||
if (self.params.db && self.params.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)
|
.done(self.on_token_loaded)
|
||||||
.fail(self.on_token_failed);
|
.fail(self.on_token_failed)
|
||||||
|
});
|
||||||
}
|
}
|
||||||
return d;
|
return d;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue