diff options
| author | ggh-openerp <ggh@tinyerp.com> | 2012-10-03 18:04:12 +0530 |
|---|---|---|
| committer | ggh-openerp <ggh@tinyerp.com> | 2012-10-03 18:04:12 +0530 |
| commit | 1fe81f3a962cf1600a9aecbb22d7be9162c3a311 (patch) | |
| tree | 76127b2022c0b08ff437da2a368cb4a8d0b9280e /addons/auth_openid/static/src | |
| parent | aa258fc7f0f83c29214732c28761edf9c4ac1988 (diff) | |
[IMP] In rpc method remove callback and modify related code
bzr revid: ggh@tinyerp.com-20121003123412-22o4t380ipsmns2e
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 70739e056ed..56ec5b57d3f 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', {}, function(result) { + this.rpc('/auth_openid/login/status', {}).then(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}, function(result) { + this.rpc('/auth_openid/login/verify', {'db': db, 'url': openid_url}).then(function(result) { if (result.error) { self.do_warn(result.title, result.error); return; |
