Updated location middleware

This commit is contained in:
Eduard Urbach 2018-11-06 19:54:57 +09:00
parent ba3a754d15
commit 29a3d12852

View File

@ -102,5 +102,10 @@ func updateUserLocation(user *arn.User, newIP string) {
user.Location.RegionName = newLocation.RegionName user.Location.RegionName = newLocation.RegionName
user.Location.TimeZone = newLocation.TimeZone user.Location.TimeZone = newLocation.TimeZone
user.Location.ZipCode = newLocation.ZipCode user.Location.ZipCode = newLocation.ZipCode
// Make South Korea easier to read
if user.Location.CountryName == "Korea, Republic of" {
user.Location.CountryName = "South Korea"
}
} }
} }