commit 30326996e4644c82f18a35ec1a3ab8911f679bc7
parent 1651bcd0429556b2d3918068a2e9c784d008e3ae
Author: Felicitus <felicitus@felicitus.org>
Date: Wed, 14 Sep 2011 15:18:29 +0200
Added documentation
Diffstat:
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/frontend/js/PartKeepr.js b/frontend/js/PartKeepr.js
@@ -433,8 +433,6 @@ PartKeepr.getRESTProxy = function (service) {
PartKeepr.ExceptionWindow.showException(exception);
-
-
}
}
},
@@ -512,6 +510,12 @@ 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;