diff options
| author | Olivier Dony <odo@openerp.com> | 2011-12-13 17:15:54 +0100 |
|---|---|---|
| committer | Olivier Dony <odo@openerp.com> | 2011-12-13 17:15:54 +0100 |
| commit | 9835cebe195bc9ca9bffd5d4e2cba680d366b82b (patch) | |
| tree | 441881a902a8f01fea04a97d76f6bbc3b35e6669 /addons/web_mobile | |
| parent | 020c0927e43b55f897fb4a990db4db051c8a55d3 (diff) | |
| parent | 5ea774f883f1ac71ca98906a5ec5811b7e55e132 (diff) | |
[MERGE] Use the new authenticate() API instead of login()
Using the new authenticate() API instead allows to pass
a user-agent environment along with the credentials.
The main use for the UA environment at this point is
to pass the base URL used to login, so that the server
may initialize its "web.base.url" global config parameters
bzr revid: odo@openerp.com-20111213161554-jbtrp94aatcnibne
Diffstat (limited to 'addons/web_mobile')
| -rw-r--r-- | addons/web_mobile/static/openerp/dynamics/testConnect.js | 2 | ||||
| -rw-r--r-- | addons/web_mobile/static/src/js/chrome_mobile.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/addons/web_mobile/static/openerp/dynamics/testConnect.js b/addons/web_mobile/static/openerp/dynamics/testConnect.js index 3023fcc22b0..b64ed11317c 100644 --- a/addons/web_mobile/static/openerp/dynamics/testConnect.js +++ b/addons/web_mobile/static/openerp/dynamics/testConnect.js @@ -3,7 +3,7 @@ var ip = ''; var USER = ''; var PWD = ''; SESSION = new oe.base.Session('DEBUG'); -SESSION.session_login(db,USER,PWD, initLogin); +SESSION.login(db,USER,PWD, initLogin); function initLogin() { // Le premier argument de la fonction -> référence à une fonction python. diff --git a/addons/web_mobile/static/src/js/chrome_mobile.js b/addons/web_mobile/static/src/js/chrome_mobile.js index f86e0fec5f9..ff75b26ef66 100644 --- a/addons/web_mobile/static/src/js/chrome_mobile.js +++ b/addons/web_mobile/static/src/js/chrome_mobile.js @@ -64,7 +64,7 @@ openerp.web_mobile.Login = openerp.web.Widget.extend({ var password = $e.find("div input[name=password]").val(); //$e.hide(); // Should hide then call callback - this.session.session_login(db, login, password, function() { + this.session.login(db, login, password, function() { if(self.session.session_is_valid()) { if (self.has_local_storage) { if(self.remember_creditentials) { |
