Skip to content

Commit b1c5a55

Browse files
authored
Merge pull request #630 from softwareconstruction240/oauth
HOTFIX: Incorrect "You are not in queue" message
2 parents ff06618 + 58f598d commit b1c5a55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/edu/byu/cs/controller/WebSocketController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public static void onMessage(WsMessageContext ctx) {
3232
String netId;
3333
ctx.enableAutomaticPings(20, TimeUnit.SECONDS);
3434
try {
35-
netId = JwtUtils.validateToken(message);
35+
netId = JwtUtils.validateToken(ctx.cookie("token"));
3636
} catch (Exception e) {
3737
LOGGER.warn("Exception thrown while validating token: ", e);
3838
sendError(session, "Invalid token");

0 commit comments

Comments
 (0)