Skip to content
Open
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 ZkLobbyServer/LoginChecker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,6 @@ public async Task<LoginCheckerResponse> DoLogin(Login login, string ip, List<ulo
LogIP(db, acc, ip);
LogUserID(db, acc, userID, installID);

if (String.IsNullOrEmpty(installID) && !acc.HasVpnException)
{
await server.GhostChanSay(GlobalConst.ModeratorChannel, string.Format("{0} just logged in with an unsupported lobby https://zero-k.info/Users/AdminUserDetail/{1}", acc.Name, acc.AccountID));
}

db.SaveChanges();

ret.LoginResponse.SessionToken = Guid.NewGuid().ToString(); // create session token
Expand All @@ -175,6 +170,11 @@ public async Task<LoginCheckerResponse> DoLogin(Login login, string ip, List<ulo

if (!acc.HasVpnException && GlobalConst.VpnCheckEnabled && !acc.SteamID.HasValue) if (HasVpn(ip, acc, db)) return BlockLogin("Connection using proxy or VPN is not allowed! (You can ask for exception)", acc, ip, userID, installID);

if (String.IsNullOrEmpty(installID) && !acc.HasVpnException)
{
await server.GhostChanSay(GlobalConst.ModeratorChannel, string.Format("{0} just logged in with an unsupported lobby https://zero-k.info/Users/AdminUserDetail/{1}", acc.Name, acc.AccountID));
}

return ret;
}
}
Expand Down
Loading