From d2ec8b8e1f58a8d39b31b3f43e20335c35540220 Mon Sep 17 00:00:00 2001
From: Adrian-Stefan Mares
-Your invitation expires {{ relTime . }}, so register before then.
+Your invitation expires {{ relDuration . }}, so register before then.
diff --git a/pkg/email/templates/invitation.txt.tmpl b/pkg/email/templates/invitation.txt.tmpl
index f1f9f0d174..3db9468fec 100644
--- a/pkg/email/templates/invitation.txt.tmpl
+++ b/pkg/email/templates/invitation.txt.tmpl
@@ -6,7 +6,7 @@ You can now go to {{ .Network.IdentityServerURL }}/register?invitation_token={{
{{- with .TTL }}
-Your invitation expires {{ relTime . }}, so register before then.
+Your invitation expires {{ relDuration . }}, so register before then.
{{- end }}
After successful registration, you can go to {{ .Network.ConsoleURL }} to start adding devices and gateways.
diff --git a/pkg/email/templates/login_token.html.tmpl b/pkg/email/templates/login_token.html.tmpl
index fb6494b652..05c993b899 100644
--- a/pkg/email/templates/login_token.html.tmpl
+++ b/pkg/email/templates/login_token.html.tmpl
@@ -19,7 +19,7 @@ Alternatively, you can use the login token
-Your login token expires {{ relTime . }}, so if you don't log in before then, you'll have to request a new token if you still want to log in.
+Your login token expires {{ relDuration . }}, so if you don't log in before then, you'll have to request a new token if you still want to log in.
{{ .InvitationToken }}
{{- with .TTL }}
{{ .LoginToken }}
direct
-Your temporary password expires {{ relTime . }}, so if you don't change your password before then, you'll have to request a new temporary password if you still want to change your password. +Your temporary password expires {{ relDuration . }}, so if you don't change your password before then, you'll have to request a new temporary password if you still want to change your password.
{{- end }} {{- end -}} diff --git a/pkg/email/templates/temporary_password.txt.tmpl b/pkg/email/templates/temporary_password.txt.tmpl index 61b235e7fe..916d576362 100644 --- a/pkg/email/templates/temporary_password.txt.tmpl +++ b/pkg/email/templates/temporary_password.txt.tmpl @@ -8,5 +8,5 @@ Please note that this temporary password can only be used to change your passwor {{- with .TTL }} -Your temporary password expires {{ relTime . }}, so if you don't change your password before then, you'll have to request a new temporary password if you still want to change your password. +Your temporary password expires {{ relDuration . }}, so if you don't change your password before then, you'll have to request a new temporary password if you still want to change your password. {{- end }} diff --git a/pkg/email/templates/validate.html.tmpl b/pkg/email/templates/validate.html.tmpl index 4c2832de3e..4b535446d8 100644 --- a/pkg/email/templates/validate.html.tmpl +++ b/pkg/email/templates/validate.html.tmpl @@ -22,7 +22,7 @@ Alternatively, you can use the reference{{ .ID }}
and confirmation
{{- with .TTL }}
-The confirmation token expires {{ relTime . }}, so if you don't confirm your email address before then, you'll have to request a new confirmation if you still want to confirm your email address. +The confirmation token expires {{ relDuration . }}, so if you don't confirm your email address before then, you'll have to request a new confirmation if you still want to confirm your email address.
{{- end }} diff --git a/pkg/email/templates/validate.txt.tmpl b/pkg/email/templates/validate.txt.tmpl index 2f725d966c..83c270d1b2 100644 --- a/pkg/email/templates/validate.txt.tmpl +++ b/pkg/email/templates/validate.txt.tmpl @@ -9,5 +9,5 @@ Alternatively, you can use the reference "{{ .ID }}" and confirmation token "{{ {{- with .TTL }} -The confirmation token expires {{ relTime . }}, so if you don't confirm your email address before then, you'll have to request a new confirmation if you still want to confirm your email address. +The confirmation token expires {{ relDuration . }}, so if you don't confirm your email address before then, you'll have to request a new confirmation if you still want to confirm your email address. {{- end }}