diff --git a/loginEvent.py b/loginEvent.py index 33110df..74b14f5 100644 --- a/loginEvent.py +++ b/loginEvent.py @@ -125,15 +125,16 @@ def handle(flaskRequest): # Get location and country from ip.zxq.co or database if generalFunctions.stringToBool(glob.conf.config["server"]["localizeusers"]): # Make sure this user has not disabled his country flag - if userHelper.getShowCountry(userID) == False: - location = [0,0] - countryLetters = "XX" - country = 0 - else: - # Get location and country from IP - location = locationHelper.getLocation(requestIP) - countryLetters = locationHelper.getCountry(requestIP) - country = countryHelper.getCountryID(countryLetters) + #if userHelper.getShowCountry(userID) == False: + # location = [0,0] + # countryLetters = "XX" + # country = 0 + #else: + + # Get location and country from IP + location = locationHelper.getLocation(requestIP) + countryLetters = locationHelper.getCountry(requestIP) + country = countryHelper.getCountryID(countryLetters) else: # Set location to 0,0 and get country from db print("[!] Location skipped")