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.
2 parents baf677b + 6fbb654 commit d3c92c7Copy full SHA for d3c92c7
src/commands/handlers/registration.js
@@ -145,7 +145,11 @@ var handlers = {
145
}
146
if (this.network.cap.enabled.length > 0) {
147
if (this.network.cap.isEnabled('sasl')) {
148
- this.connection.write('AUTHENTICATE PLAIN');
+ if (this.connection.options.sasl_mechanism === 'AUTHCOOKIE') {
149
+ this.connection.write('AUTHENTICATE AUTHCOOKIE');
150
+ } else {
151
+ this.connection.write('AUTHENTICATE PLAIN');
152
+ }
153
} else {
154
this.connection.write('CAP END');
155
this.network.cap.negotiating = false;
0 commit comments