- use header userId to validate token

This commit is contained in:
Richard Alam 2017-12-06 18:15:28 -08:00
parent 7c4435b0bb
commit f5e6cc4046

View File

@ -26,13 +26,13 @@ trait ValidateAuthTokenReqMsgHdlr extends HandlerHelpers {
userValidated(u, state)
} else {
validateTokenFailed(outGW, meetingId = liveMeeting.props.meetingProp.intId,
userId = msg.body.userId, authToken = msg.body.authToken,
userId = msg.header.userId, authToken = msg.body.authToken,
valid = false, waitForApproval = false, state)
}
case None =>
validateTokenFailed(outGW, meetingId = liveMeeting.props.meetingProp.intId,
userId = msg.body.userId, authToken = msg.body.authToken,
userId = msg.header.userId, authToken = msg.body.authToken,
valid = false, waitForApproval = false, state)
}