partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit 4843bb4836878326afd1e62e4347533e72efb877
parent 963333178afc9102e62f5f2b9b8d40d1aaedd0bf
Author: Felicitus <felicitus@felicitus.org>
Date:   Mon, 26 Mar 2012 00:04:34 +0200

Fixed auto-login to work again

Diffstat:
Msrc/frontend/js/PartKeepr.js | 19++++---------------
1 file changed, 4 insertions(+), 15 deletions(-)

diff --git a/src/frontend/js/PartKeepr.js b/src/frontend/js/PartKeepr.js @@ -31,8 +31,8 @@ Ext.application({ // If auto login is wanted (for e.g. demo systems), put it in here this.sessionManager.on("login", this.onLogin, this); - if (window.autoLoginUsername) { - this.sessionManager.login(window.autoLoginUsername, window.autoLoginPassword); + if (window.parameters.autoLoginUsername) { + this.sessionManager.login(window.parameters.autoLoginUsername, window.parameters.autoLoginPassword); } else { this.sessionManager.login(); } @@ -581,15 +581,4 @@ PartKeepr.serializeRecords = function (records) { } return finalData; -}; - -/** - * Sets the username & password for automatic login. - * - * @param username The username to set - * @param password The password to set (plaintext, not hashed) - */ -PartKeepr.setAutoLogin = function (username, password) { - PartKeepr.autoLoginUsername = username; - PartKeepr.autoLoginPassword = password; -}; - \ No newline at end of file +}; + \ No newline at end of file