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 aff0b1c commit e7aa860Copy full SHA for e7aa860
lib/commands/client_handshake.js
@@ -36,12 +36,18 @@ ClientHandshake.prototype.sendCredentials = function (connection) {
36
console.log('Sending handshake packet: flags:%d=(%s)', this.clientFlags,
37
flagNames(this.clientFlags).join(', '));
38
}
39
+
40
+ this.user = connection.config.user;
41
+ this.password = connection.config.password;
42
+ this.passwordSha1 = connection.config.passwordSha1;
43
+ this.database = connection.config.database;
44
45
var handshakeResponse = new Packets.HandshakeResponse({
46
flags : this.clientFlags,
- user : connection.config.user,
- database: connection.config.database,
- password: connection.config.password,
- passwordSha1 : connection.config.passwordSha1,
47
+ user : this.user,
48
+ database: this.database,
49
+ password: this.password,
50
+ passwordSha1 : this.passwordSha1,
51
charsetNumber : connection.config.charsetNumber,
52
authPluginData1: this.handshake.authPluginData1,
53
authPluginData2: this.handshake.authPluginData2,
0 commit comments