Skip to content
Snippets Groups Projects
Commit c0c4d475 authored by Bruno Michel's avatar Bruno Michel
Browse files

Remove geolocation for new connection mail

With the lack available IPv4 addresses, the providers are reusing their
pool of addresses and it makes harder to geolocalize them. We have more
errors, and the errors confuse a lot our users. So, we think it is
better to remove this information in the new connection mail.
parent 8037052e
Branches
No related tags found
No related merge requests found
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
</mj-text> </mj-text>
<mj-text mj-class="content-medium"> <mj-text mj-class="content-medium">
<ul style="margin: 0"> <ul style="margin: 0">
<li>{{t "Mail New Connection Place"}} {{.Subdivision}}, {{.Country}} ({{t "Mail New Connection Near"}} {{.City}})</li>
<li>{{t "Mail New Connection Time"}} {{.Time}}</li> <li>{{t "Mail New Connection Time"}} {{.Time}}</li>
<li>{{t "Mail New Connection Browser"}} {{.Browser}}</li> <li>{{t "Mail New Connection Browser"}} {{.Browser}}</li>
<li>{{t "Mail New Connection OS"}} {{.OS}}</li> <li>{{t "Mail New Connection OS"}} {{.OS}}</li>
......
{{t "Mail New Connection Intro"}} {{t "Mail New Connection Intro"}}
{{t "Mail New Connection Place"}} {{.Subdivision}}, {{.Country}} ({{t "Mail New Connection Near"}} {{.City}})
{{t "Mail New Connection Time"}} {{.Time}} {{t "Mail New Connection Time"}} {{.Time}}
{{t "Mail New Connection Browser"}} {{.Browser}} {{t "Mail New Connection Browser"}} {{.Browser}}
{{t "Mail New Connection OS"}} {{.OS}} {{t "Mail New Connection OS"}} {{.OS}}
......
...@@ -184,9 +184,6 @@ func sendLoginNotification(i *instance.Instance, l *LoginEntry) error { ...@@ -184,9 +184,6 @@ func sendLoginNotification(i *instance.Instance, l *LoginEntry) error {
} }
templateValues := map[string]interface{}{ templateValues := map[string]interface{}{
"City": l.City,
"Subdivision": l.Subdivision,
"Country": l.Country,
"Time": l.CreatedAt.Format("2006-01-02 15:04:05Z07:00"), "Time": l.CreatedAt.Format("2006-01-02 15:04:05Z07:00"),
"IP": l.IP, "IP": l.IP,
"Browser": l.Browser, "Browser": l.Browser,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment