Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Interfaces/Server/QJWT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,12 @@ void QJWT::verifyJWT(
QJWT::extractAndDecryptPayload(_jwt, _jWTPayload);

//-- check client ip -----
if (_jWTPayload.contains("prv")) {
QJsonObject PrivateObject = _jWTPayload["prv"].toObject();
// if (_jWTPayload.contains("prv")) {
// QJsonObject PrivateObject = _jWTPayload["prv"].toObject();

if (PrivateObject.contains("cip") && (PrivateObject["cip"].toString() != _remoteIP))
throw exHTTPForbidden("Invalid client IP");
}
// if (PrivateObject.contains("cip") && (PrivateObject["cip"].toString() != _remoteIP))
// throw exHTTPForbidden("Invalid client IP");
// }

uint currentDateTime = QDateTime::currentDateTime().toTime_t();

Expand Down