Skip to content

Commit d2a027a

Browse files
committed
Fix failure to publish login fail message with bad JWT
1 parent bd50548 commit d2a027a

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

docs/content/release_notes.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release Notes
22

3+
## 6.3.1
4+
**Bug Fixes**
5+
6+
* Corrected failure to publish login failure event when an attempting to authenticate with an invalid JWT.
7+
38
## 6.3.0
49
**New Features**
510

docs/content/releases/6.3.1.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
**Bug Fixes**
2+
3+
* Corrected failure to publish login failure event when an attempting to authenticate with an invalid JWT.

lib/connection/Connection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ module.exports = (() => {
369369
// before the first invocation of pumpInboundProcessing could process the login
370370
// failure.
371371

372-
const loginFailed = __inboundMessages.length > 0 && __inboundMessages[0].indexOf('-') === 0;
372+
const loginFailed = __inboundMessages.length > 0 && __inboundMessages.some(m => m.indexOf('-') === 0);
373373

374374
let messages = __inboundMessages;
375375

0 commit comments

Comments
 (0)