1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-02-16 17:35:17 +00:00

fix(email): display login location correctly if country or city is not present

This commit is contained in:
Elias Schneider
2025-09-24 12:01:20 +02:00
parent ecc7e224e9
commit 79989fb176
7 changed files with 37 additions and 43 deletions

View File

@@ -12,7 +12,8 @@ DETAILS
Approximate Location
{{.Data.City}}, {{.Data.Country}}
{{if and .Data.City .Data.Country}}{{.Data.City}}, {{.Data.Country}}{{else if
.Data.Country}}{{.Data.Country}}{{else}}Unknown{{end}}
IP Address