We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3433ed9 commit 6fddc56Copy full SHA for 6fddc56
lib/client.js
@@ -84,7 +84,7 @@ Client.prototype.connect = function(callback) {
84
//password request handling
85
con.on('authenticationMD5Password', checkPgPass(function(msg) {
86
var inner = Client.md5(self.password + self.user);
87
- var outer = Client.md5(inner + msg.salt.toString('binary'));
+ var outer = Client.md5(Buffer.concat([new Buffer(inner), msg.salt]));
88
var md5password = "md5" + outer;
89
con.password(md5password);
90
}));
0 commit comments