Skip to content

Commit fe3a11c

Browse files
judasnowwellwelwel
andauthored
chore: fix typo in authPluginName property (#3210)
* fix: 🐛 typo * fix: 🐛 typo --------- Co-authored-by: Weslley Araújo <[email protected]>
1 parent be22202 commit fe3a11c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/commands/client_handshake.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class ClientHandshake extends Command {
6767
this.password3 = connection.config.password3;
6868
this.passwordSha1 = connection.config.passwordSha1;
6969
this.database = connection.config.database;
70-
this.autPluginName = this.handshake.autPluginName;
70+
this.authPluginName = this.handshake.authPluginName;
7171
const handshakeResponse = new Packets.HandshakeResponse({
7272
flags: this.clientFlags,
7373
user: this.user,

lib/packets/handshake.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Handshake {
1515
this.authPluginData2 = args.authPluginData2;
1616
this.characterSet = args.characterSet;
1717
this.statusFlags = args.statusFlags;
18-
this.autPluginName = args.autPluginName;
18+
this.authPluginName = args.authPluginName;
1919
}
2020

2121
setScrambleData(cb) {
@@ -102,7 +102,7 @@ class Handshake {
102102
}
103103

104104
if (args.capabilityFlags & ClientConstants.PLUGIN_AUTH) {
105-
args.autPluginName = packet.readNullTerminatedString('ascii');
105+
args.authPluginName = packet.readNullTerminatedString('ascii');
106106
}
107107

108108
return new Handshake(args);

0 commit comments

Comments
 (0)