some 2fa, split main into multiple files

This commit is contained in:
Your Name
2023-09-26 16:36:03 -04:00
parent 266e16a060
commit f3cc9cdeed
8 changed files with 382 additions and 225 deletions

16
templates/2fa.html Normal file
View File

@@ -0,0 +1,16 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
</head>
<body>
<p>
Hello {{.UserName}}! This is your Two Factor Authentication code to finish logging in to {{.SiteName}}. If you did not request this code,
please contact us immediately. This code will expire in 30 minutes.<br><br>
<h1>Your 2FA code is: {{.Code}}</h1>
</p>
</body>
</html>

11
templates/alert.html Normal file
View File

@@ -0,0 +1,11 @@
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
</head>
<body>
<p> Hey {{.UserName}}! Just letting you know that {{.Activity}}.<br> You can disable future notifications in your
user settings.</p>
</body>
</html>

12
templates/recovery.html Normal file
View File

@@ -0,0 +1,12 @@
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
</head>
<body>
<p>Hello {{.UserName}}! Someone (hopefully you) has attempted an account recovery at {{.SiteName}}. If this was
you, enter the following code to regain access: {{.RecoveryCode}}<br> If this was not you, you can safely
ignore this email.</p>
</body>
</html>

View File

@@ -7,7 +7,7 @@
<body>
<p>
Hello {{.UserName}}! Welcome to {{.SiteName}}! We've created your account with the username you selected and the following password: {{.Pass}}<br>
You can change your password to whatever you want once you log in.
You can change your password once you log in.
</p>
</body>