Updated location middleware
This commit is contained in:
parent
ba3a754d15
commit
29a3d12852
@ -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"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user