Skip to content

Commit 9ba4ebb

Browse files
committed
Fix SASL again
1 parent 66d32c6 commit 9ba4ebb

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

packages/pg/lib/client.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -247,15 +247,13 @@ class Client extends EventEmitter {
247247
_handleAuthSASL(msg) {
248248
this._checkPgPass(() => {
249249
this.saslSession = sasl.startSession(msg.mechanisms)
250-
const con = this.connection
251-
con.sendSASLInitialResponseMessage(this.saslSession.mechanism, this.saslSession.response)
250+
this.connection.sendSASLInitialResponseMessage(this.saslSession.mechanism, this.saslSession.response)
252251
})
253252
}
254253

255254
_handleAuthSASLContinue(msg) {
256-
const { saslSession } = this
257-
sasl.continueSession(saslSession, this.password, msg.data)
258-
con.sendSCRAMClientFinalMessage(saslSession.response)
255+
sasl.continueSession(this.saslSession, this.password, msg.data)
256+
this.connection.sendSCRAMClientFinalMessage(this.saslSession.response)
259257
}
260258

261259
_handleAuthSASLFinal(msg) {

0 commit comments

Comments
 (0)