Changed: Add extra url parameters only for trusted domain requests

--HG--
branch : develop
This commit is contained in:
Nimetu 2019-05-03 00:26:12 +03:00
parent fa86408d50
commit 8f124b3066

View file

@ -71,6 +71,9 @@ static string getWebAuthKey()
void addWebIGParams (string &url, bool trustedDomain) void addWebIGParams (string &url, bool trustedDomain)
{ {
// no extras parameters added to url if not in trusted domains list
if (!trustedDomain) return;
if(!UserEntity || !NetMngr.getLoginCookie().isValid()) return; if(!UserEntity || !NetMngr.getLoginCookie().isValid()) return;
uint32 cid = NetMngr.getLoginCookie().getUserId() * 16 + PlayerSelectedSlot; uint32 cid = NetMngr.getLoginCookie().getUserId() * 16 + PlayerSelectedSlot;