summaryrefslogtreecommitdiffstats
path: root/templates/mail/auth
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2024-10-18 20:33:49 +0200
committerDaniel Baumann <daniel@debian.org>2024-10-18 20:33:49 +0200
commitdd136858f1ea40ad3c94191d647487fa4f31926c (patch)
tree58fec94a7b2a12510c9664b21793f1ed560c6518 /templates/mail/auth
parentInitial commit. (diff)
downloadforgejo-upstream/9.0.0.tar.xz
forgejo-upstream/9.0.0.zip
Adding upstream version 9.0.0.HEADupstream/9.0.0upstreamdebian
Signed-off-by: Daniel Baumann <daniel@debian.org>
Diffstat (limited to 'templates/mail/auth')
-rw-r--r--templates/mail/auth/2fa_disabled.tmpl15
-rw-r--r--templates/mail/auth/activate.tmpl16
-rw-r--r--templates/mail/auth/activate_email.tmpl16
-rw-r--r--templates/mail/auth/password_change.tmpl16
-rw-r--r--templates/mail/auth/primary_mail_change.tmpl14
-rw-r--r--templates/mail/auth/register_notify.tmpl17
-rw-r--r--templates/mail/auth/removed_security_key.tmpl15
-rw-r--r--templates/mail/auth/reset_passwd.tmpl16
-rw-r--r--templates/mail/auth/totp_enrolled.tmpl15
9 files changed, 140 insertions, 0 deletions
diff --git a/templates/mail/auth/2fa_disabled.tmpl b/templates/mail/auth/2fa_disabled.tmpl
new file mode 100644
index 0000000..3f9d379
--- /dev/null
+++ b/templates/mail/auth/2fa_disabled.tmpl
@@ -0,0 +1,15 @@
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <meta name="format-detection" content="telephone=no,date=no,address=no,email=no,url=no">
+</head>
+
+<body>
+ <p>{{.locale.Tr "mail.hi_user_x" (.DisplayName|DotEscape)}}</p><br>
+ <p>{{.locale.Tr "mail.totp_disabled.text_1"}}</p><br>
+ {{if not .HasWebAuthn}}<p>{{.locale.Tr "mail.totp_disabled.no_2fa"}}</p><br>{{end}}
+ <p>{{.locale.Tr "mail.account_security_caution.text_1"}}</p><br>
+ <p>{{.locale.Tr "mail.account_security_caution.text_2"}}</p><br>
+
+ {{template "common/footer_simple" .}}
+</body>
+</html>
diff --git a/templates/mail/auth/activate.tmpl b/templates/mail/auth/activate.tmpl
new file mode 100644
index 0000000..eb7ea5a
--- /dev/null
+++ b/templates/mail/auth/activate.tmpl
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <meta name="format-detection" content="telephone=no,date=no,address=no,email=no,url=no">
+</head>
+
+{{$activate_url := printf "%suser/activate?code=%s" AppUrl (QueryEscape .Code)}}
+<body>
+ <p>{{.locale.Tr "mail.activate_account.text_1" (.DisplayName|DotEscape) AppName}}</p><br>
+ <p>{{.locale.Tr "mail.activate_account.text_2" .ActiveCodeLives}}</p><p><a href="{{$activate_url}}">{{$activate_url}}</a></p><br>
+ <p>{{.locale.Tr "mail.link_not_working_do_paste"}}</p>
+
+ <p>© <a target="_blank" rel="noopener noreferrer" href="{{AppUrl}}">{{AppName}}</a></p>
+</body>
+</html>
diff --git a/templates/mail/auth/activate_email.tmpl b/templates/mail/auth/activate_email.tmpl
new file mode 100644
index 0000000..9ca54d3
--- /dev/null
+++ b/templates/mail/auth/activate_email.tmpl
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <meta Name="format-detection" content="telephone=no,date=no,address=no,email=no,url=no">
+</head>
+
+{{$activate_url := printf "%suser/activate_email?code=%s&email=%s" AppUrl (QueryEscape .Code) (QueryEscape .Email)}}
+<body>
+ <p>{{.locale.Tr "mail.hi_user_x" (.DisplayName|DotEscape)}}</p><br>
+ <p>{{.locale.Tr "mail.activate_email.text" .ActiveCodeLives}}</p><p><a href="{{$activate_url}}">{{$activate_url}}</a></p><br>
+ <p>{{.locale.Tr "mail.link_not_working_do_paste"}}</p>
+
+ <p>© <a target="_blank" rel="noopener noreferrer" href="{{AppUrl}}">{{AppName}}</a></p>
+</body>
+</html>
diff --git a/templates/mail/auth/password_change.tmpl b/templates/mail/auth/password_change.tmpl
new file mode 100644
index 0000000..4366b8d
--- /dev/null
+++ b/templates/mail/auth/password_change.tmpl
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <meta name="format-detection" content="telephone=no,date=no,address=no,email=no,url=no">
+</head>
+
+<body>
+ <p>{{.locale.Tr "mail.hi_user_x" (.DisplayName|DotEscape)}}</p><br>
+ <p>{{.locale.Tr "mail.password_change.text_1"}}</p><br>
+ <p>{{.locale.Tr "mail.account_security_caution.text_1"}}</p><br>
+ <p>{{.locale.Tr "mail.account_security_caution.text_2"}}</p><br>
+
+ {{template "common/footer_simple" .}}
+</body>
+</html>
diff --git a/templates/mail/auth/primary_mail_change.tmpl b/templates/mail/auth/primary_mail_change.tmpl
new file mode 100644
index 0000000..d17be19
--- /dev/null
+++ b/templates/mail/auth/primary_mail_change.tmpl
@@ -0,0 +1,14 @@
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <meta name="format-detection" content="telephone=no,date=no,address=no,email=no,url=no">
+</head>
+
+<body>
+ <p>{{.locale.Tr "mail.hi_user_x" (.DisplayName|DotEscape)}}</p><br>
+ <p>{{.locale.Tr "mail.primary_mail_change.text_1" .NewPrimaryMail}}</p><br>
+ <p>{{.locale.Tr "mail.account_security_caution.text_1"}}</p><br>
+ <p>{{.locale.Tr "mail.account_security_caution.text_2"}}</p><br>
+
+ {{template "common/footer_simple" .}}
+</body>
+</html>
diff --git a/templates/mail/auth/register_notify.tmpl b/templates/mail/auth/register_notify.tmpl
new file mode 100644
index 0000000..d3a668b
--- /dev/null
+++ b/templates/mail/auth/register_notify.tmpl
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <meta name="format-detection" content="telephone=no,date=no,address=no,email=no,url=no">
+</head>
+
+{{$set_pwd_url := printf "%[1]suser/forgot_password" AppUrl}}
+<body>
+ <p>{{.locale.Tr "mail.hi_user_x" (.DisplayName|DotEscape)}}</p><br>
+ <p>{{.locale.Tr "mail.register_notify.text_1" AppName}}</p><br>
+ <p>{{.locale.Tr "mail.register_notify.text_2" .Username}}</p><p><a href="{{AppUrl}}user/login">{{AppUrl}}user/login</a></p><br>
+ <p>{{.locale.Tr "mail.register_notify.text_3" $set_pwd_url}}</p><br>
+
+ <p>© <a target="_blank" rel="noopener noreferrer" href="{{AppUrl}}">{{AppName}}</a></p>
+</body>
+</html>
diff --git a/templates/mail/auth/removed_security_key.tmpl b/templates/mail/auth/removed_security_key.tmpl
new file mode 100644
index 0000000..18ae187
--- /dev/null
+++ b/templates/mail/auth/removed_security_key.tmpl
@@ -0,0 +1,15 @@
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <meta name="format-detection" content="telephone=no,date=no,address=no,email=no,url=no">
+</head>
+
+<body>
+ <p>{{.locale.Tr "mail.hi_user_x" (.DisplayName|DotEscape)}}</p><br>
+ <p>{{.locale.Tr "mail.removed_security_key.text_1" .SecurityKeyName}}</p><br>
+ {{if and (not .HasWebAuthn) (not .HasTOTP)}}<p>{{.locale.Tr "mail.removed_security_key.no_2fa"}}</p><br>{{end}}
+ <p>{{.locale.Tr "mail.account_security_caution.text_1"}}</p><br>
+ <p>{{.locale.Tr "mail.account_security_caution.text_2"}}</p><br>
+
+ {{template "common/footer_simple" .}}
+</body>
+</html>
diff --git a/templates/mail/auth/reset_passwd.tmpl b/templates/mail/auth/reset_passwd.tmpl
new file mode 100644
index 0000000..b85b770
--- /dev/null
+++ b/templates/mail/auth/reset_passwd.tmpl
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <meta name="format-detection" content="telephone=no,date=no,address=no,email=no,url=no">
+</head>
+
+{{$recover_url := printf "%suser/recover_account?code=%s" AppUrl (QueryEscape .Code)}}
+<body>
+ <p>{{.locale.Tr "mail.hi_user_x" (.DisplayName|DotEscape)}}</p><br>
+ <p>{{.locale.Tr "mail.reset_password.text" .ResetPwdCodeLives}}</p><p><a href="{{$recover_url}}">{{$recover_url}}</a></p><br>
+ <p>{{.locale.Tr "mail.link_not_working_do_paste"}}</p>
+
+ <p>© <a target="_blank" rel="noopener noreferrer" href="{{AppUrl}}">{{AppName}}</a></p>
+</body>
+</html>
diff --git a/templates/mail/auth/totp_enrolled.tmpl b/templates/mail/auth/totp_enrolled.tmpl
new file mode 100644
index 0000000..9c665e0
--- /dev/null
+++ b/templates/mail/auth/totp_enrolled.tmpl
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <meta name="format-detection" content="telephone=no,date=no,address=no,email=no,url=no">
+</head>
+
+<body>
+ <p>{{.locale.Tr "mail.hi_user_x" (.DisplayName|DotEscape)}}</p><br>
+ {{if .HasWebAuthn}}<p>{{.locale.Tr "mail.totp_enrolled.text_1.has_webauthn"}}</p>{{else}}<p>{{.locale.Tr "mail.totp_enrolled.text_1.no_webauthn"}}</p>{{end}}<br>
+ <p>{{.locale.Tr "mail.account_security_caution.text_1"}}</p><br>
+ <p>{{.locale.Tr "mail.account_security_caution.text_2"}}</p><br>
+ {{template "common/footer_simple" .}}
+</body>
+</html>