diff options
| author | Olivier Dony <odo@openerp.com> | 2012-11-09 14:36:23 +0100 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2012-11-09 14:36:23 +0100 |
| commit | d47d5f202d8da18fac46dee9a9be6613d1ef8e2f (patch) | |
| tree | 703be521b4ca935d0e4375fc3e88b34558b282a3 /addons/auth_openid/static/src | |
| parent | c9d5148991db5beccedc802ce56efb3689dd1527 (diff) | |
| parent | c5961309c424173953a67d873c79135a97856759 (diff) | |
[MERGE] Sync with trunk
bzr revid: odo@openerp.com-20121109133623-pvgt4b9koun74ib3
Diffstat (limited to 'addons/auth_openid/static/src')
| -rw-r--r-- | addons/auth_openid/static/src/js/auth_openid.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/auth_openid/static/src/js/auth_openid.js b/addons/auth_openid/static/src/js/auth_openid.js index 56ec5b57d3f..a8901ee80f1 100644 --- a/addons/auth_openid/static/src/js/auth_openid.js +++ b/addons/auth_openid/static/src/js/auth_openid.js @@ -69,7 +69,7 @@ instance.web.Login = instance.web.Login.extend({ _check_error: function() { var self = this; if (this.params.loginerror !== undefined) { - this.rpc('/auth_openid/login/status', {}).then(function(result) { + this.rpc('/auth_openid/login/status', {}).done(function(result) { if (_.contains(['success', 'failure'], result.status) && result.message) { self.do_warn('Invalid OpenID Login', result.message); } @@ -106,7 +106,7 @@ instance.web.Login = instance.web.Login.extend({ do_openid_login: function(db, openid_url) { var self = this; - this.rpc('/auth_openid/login/verify', {'db': db, 'url': openid_url}).then(function(result) { + this.rpc('/auth_openid/login/verify', {'db': db, 'url': openid_url}).done(function(result) { if (result.error) { self.do_warn(result.title, result.error); return; |
