[Pkg-javascript-commits] [ltx] 158/469: removed unneeded code formatting cleanup
Jonas Smedegaard
dr at jones.dk
Wed Aug 31 13:01:19 UTC 2016
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository ltx.
commit e5c014ede32182ea6de55f15bc846acd2099d65e
Author: Michael Geers <michael.geers at neuland-bfi.de>
Date: Wed Oct 13 11:30:43 2010 +0200
removed unneeded code
formatting cleanup
---
lib/xmpp/sasl.js | 20 ++++----------------
1 file changed, 4 insertions(+), 16 deletions(-)
diff --git a/lib/xmpp/sasl.js b/lib/xmpp/sasl.js
index e84722c..53748db 100644
--- a/lib/xmpp/sasl.js
+++ b/lib/xmpp/sasl.js
@@ -27,23 +27,11 @@ function Plain() {
function XFacebookPlatform() {
this.name = "X-FACEBOOK-PLATFORM";
this.auth = function() {
- return this.secret_key + "\0" +
- this.api_key + "\0" +
- this.session_key;
- };
-
- this.nonce_count = 0;
- this.getNC = function() {
- return rjust(this.nonce_count.toString(), 8, '0');
+ return "";
};
-
- this.cnonce = generateNonce();
-
this.challenge = function(s) {
var dict = querystring.parse(s);
- this.nonce_count++;
-
var response = {
api_key: this.api_key,
call_id: new Date().getTime(),
@@ -54,13 +42,13 @@ function XFacebookPlatform() {
};
var message = '';
- ['api_key','call_id','method','nonce','session_key','v'].forEach(function(v) {
+ ['api_key', 'call_id', 'method', 'nonce', 'session_key', 'v'].forEach(function(v) {
message += v + "=" + response[v];
});
-
+
response.sig = md5(message + this.secret_key, 'hex');
- return require('querystring').stringify(response);
+ return querystring.stringify(response);
};
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/ltx.git
More information about the Pkg-javascript-commits
mailing list