vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit 3fed323385356c429e4e40030bd316047d27f5a1
parent 58a928547d2f9ef99817f475da5cf65e461d98ea
Author: BlackDex <black.dex@gmail.com>
Date:   Wed, 18 Nov 2020 12:04:16 +0100

Fixed plain/text email format

plain/text emails should not contain html elements like <p> <a> etc..
This triggers some spamfilters and increases the spam score.

Also added the github link into the text only emails since this also
triggers spamfilters to increase the score since the url/link count is
different between the multipart messages.

Diffstat:
Msrc/static/templates/email/change_email.hbs | 10++++++----
Msrc/static/templates/email/delete_account.hbs | 18++++++++----------
Msrc/static/templates/email/invite_accepted.hbs | 11+++++------
Msrc/static/templates/email/invite_confirmed.hbs | 11+++++------
Msrc/static/templates/email/new_device_logged_in.hbs | 18++++++++----------
Msrc/static/templates/email/pw_hint_none.hbs | 5++++-
Msrc/static/templates/email/pw_hint_some.hbs | 9++++++---
Msrc/static/templates/email/send_org_invite.hbs | 20++++++++++----------
Msrc/static/templates/email/smtp_test.hbs | 12++++++------
Msrc/static/templates/email/twofactor_email.hbs | 11+++++------
Msrc/static/templates/email/verify_email.hbs | 16+++++++---------
Msrc/static/templates/email/welcome.hbs | 12++++++------
Msrc/static/templates/email/welcome_must_verify.hbs | 18++++++++----------
13 files changed, 84 insertions(+), 87 deletions(-)

diff --git a/src/static/templates/email/change_email.hbs b/src/static/templates/email/change_email.hbs @@ -1,6 +1,8 @@ Your Email Change <!----------------> -<html> -<p>To finalize changing your email address enter the following code in web vault: <b>{{token}}</b></p> -<p>If you did not try to change an email address, you can safely ignore this email.</p> -</html> +To finalize changing your email address enter the following code in web vault: {{token}} + +If you did not try to change an email address, you can safely ignore this email. + +=== +Github: https://github.com/dani-garcia/bitwarden_rs diff --git a/src/static/templates/email/delete_account.hbs b/src/static/templates/email/delete_account.hbs @@ -1,12 +1,10 @@ Delete Your Account <!----------------> -<html> -<p> -click the link below to delete your account. -<br> -<br> -<a href="{{url}}/#/verify-recover-delete?userId={{user_id}}&token={{token}}&email={{email}}"> -Delete Your Account</a> -</p> -<p>If you did not request this email to delete your account, you can safely ignore this email.</p> -</html> +Click the link below to delete your account. + +Delete Your Account: {{url}}/#/verify-recover-delete?userId={{user_id}}&token={{token}}&email={{email}} + +If you did not request this email to delete your account, you can safely ignore this email. + +=== +Github: https://github.com/dani-garcia/bitwarden_rs diff --git a/src/static/templates/email/invite_accepted.hbs b/src/static/templates/email/invite_accepted.hbs @@ -1,8 +1,7 @@ Invitation to {{{org_name}}} accepted <!----------------> -<html> -<p> - Your invitation for <b>{{email}}</b> to join <b>{{org_name}}</b> was accepted. - Please <a href="{{url}}/">log in</a> to the bitwarden_rs server and confirm them from the organization management page. -</p> -</html> +Your invitation for *{{email}}* to join *{{org_name}}* was accepted. +Please log in via {{url}} to the bitwarden_rs server and confirm them from the organization management page. + +=== +Github: https://github.com/dani-garcia/bitwarden_rs diff --git a/src/static/templates/email/invite_confirmed.hbs b/src/static/templates/email/invite_confirmed.hbs @@ -1,8 +1,7 @@ Invitation to {{{org_name}}} confirmed <!----------------> -<html> -<p> - Your invitation to join <b>{{org_name}}</b> was confirmed. - It will now appear under the Organizations the next time you <a href="{{url}}/">log in</a> to the web vault. -</p> -</html> +Your invitation to join *{{org_name}}* was confirmed. +It will now appear under the Organizations the next time you log in to the web vault at {{url}}. + +=== +Github: https://github.com/dani-garcia/bitwarden_rs diff --git a/src/static/templates/email/new_device_logged_in.hbs b/src/static/templates/email/new_device_logged_in.hbs @@ -1,14 +1,12 @@ New Device Logged In From {{{device}}} <!----------------> -<html> -<p> - Your account was just logged into from a new device. +Your account was just logged into from a new device. - Date: {{datetime}} - IP Address: {{ip}} - Device Type: {{device}} +* Date: {{datetime}} +* IP Address: {{ip}} +* Device Type: {{device}} - You can deauthorize all devices that have access to your account from the - <a href="{{url}}/">web vault</a> under Settings > My Account > Deauthorize Sessions. -</p> -</html> +You can deauthorize all devices that have access to your account from the web vault ( {{url}} ) under Settings > My Account > Deauthorize Sessions. + +=== +Github: https://github.com/dani-garcia/bitwarden_rs diff --git a/src/static/templates/email/pw_hint_none.hbs b/src/static/templates/email/pw_hint_none.hbs @@ -2,6 +2,9 @@ Your master password hint <!----------------> You (or someone) recently requested your master password hint. Unfortunately, your account does not have a master password hint. -If you cannot remember your master password, there is no way to recover your data. The only option to gain access to your account again is to <a href="{{url}}/#/recover-delete">delete the account</a> so that you can register again and start over. All data associated with your account will be deleted. +If you cannot remember your master password, there is no way to recover your data. The only option to gain access to your account again is to delete the account ( {{url}}/#/recover-delete ) so that you can register again and start over. All data associated with your account will be deleted. If you did not request your master password hint you can safely ignore this email. + +=== +Github: https://github.com/dani-garcia/bitwarden_rs diff --git a/src/static/templates/email/pw_hint_some.hbs b/src/static/templates/email/pw_hint_some.hbs @@ -2,9 +2,12 @@ Your master password hint <!----------------> You (or someone) recently requested your master password hint. -Your hint is: "{{hint}}" -Log in: <a href="{{url}}/">Web Vault</a> +Your hint is: *{{hint}}* +Log in to the web vault: {{url}} -If you cannot remember your master password, there is no way to recover your data. The only option to gain access to your account again is to <a href="{{url}}/#/recover-delete">delete the account</a> so that you can register again and start over. All data associated with your account will be deleted. +If you cannot remember your master password, there is no way to recover your data. The only option to gain access to your account again is to delete the account ( {{url}}/#/recover-delete ) so that you can register again and start over. All data associated with your account will be deleted. If you did not request your master password hint you can safely ignore this email. + +=== +Github: https://github.com/dani-garcia/bitwarden_rs diff --git a/src/static/templates/email/send_org_invite.hbs b/src/static/templates/email/send_org_invite.hbs @@ -1,12 +1,12 @@ Join {{{org_name}}} <!----------------> -<html> -<p> -You have been invited to join the <b>{{org_name}}</b> organization. -<br> -<br> -<a href="{{url}}/#/accept-organization/?organizationId={{org_id}}&organizationUserId={{org_user_id}}&email={{email}}&organizationName={{org_name}}&token={{token}}"> -Click here to join</a> -</p> -<p>If you do not wish to join this organization, you can safely ignore this email.</p> -</html> +You have been invited to join the *{{org_name}}* organization. + + +Click here to join: {{url}}/#/accept-organization/?organizationId={{org_id}}&organizationUserId={{org_user_id}}&email={{email}}&organizationName={{org_name}}&token={{token}} + + +If you do not wish to join this organization, you can safely ignore this email. + +=== +Github: https://github.com/dani-garcia/bitwarden_rs diff --git a/src/static/templates/email/smtp_test.hbs b/src/static/templates/email/smtp_test.hbs @@ -1,8 +1,8 @@ Bitwarden_rs SMTP Test <!----------------> -<html> -<p> -This is a test email to verify the SMTP configuration for <a href="{{url}}">{{url}}</a>. -</p> -<p>When you can read this email it is probably configured correctly.</p> -</html> +This is a test email to verify the SMTP configuration for {{url}}. + +When you can read this email it is probably configured correctly. + +=== +Github: https://github.com/dani-garcia/bitwarden_rs diff --git a/src/static/templates/email/twofactor_email.hbs b/src/static/templates/email/twofactor_email.hbs @@ -1,9 +1,8 @@ Your Two-step Login Verification Code <!----------------> -<html> -<p> - Your two-step verification code is: <b>{{token}}</b> +Your two-step verification code is: {{token}} - Use this code to complete logging in with Bitwarden. -</p> -</html> +Use this code to complete logging in with Bitwarden. + +=== +Github: https://github.com/dani-garcia/bitwarden_rs diff --git a/src/static/templates/email/verify_email.hbs b/src/static/templates/email/verify_email.hbs @@ -1,12 +1,10 @@ Verify Your Email <!----------------> -<html> -<p> Verify this email address for your account by clicking the link below. -<br> -<br> -<a href="{{url}}/#/verify-email/?userId={{user_id}}&token={{token}}"> -Verify Email Address Now</a> -</p> -<p>If you did not request to verify your account, you can safely ignore this email.</p> -</html> + +Verify Email Address Now: {{url}}/#/verify-email/?userId={{user_id}}&token={{token}} + +If you did not request to verify your account, you can safely ignore this email. + +=== +Github: https://github.com/dani-garcia/bitwarden_rs diff --git a/src/static/templates/email/welcome.hbs b/src/static/templates/email/welcome.hbs @@ -1,8 +1,8 @@ Welcome <!----------------> -<html> -<p> -Thank you for creating an account at <a href="{{url}}/">{{url}}</a>. You may now log in with your new account. -</p> -<p>If you did not request to create an account, you can safely ignore this email.</p> -</html> +Thank you for creating an account at {{url}}. You may now log in with your new account. + +If you did not request to create an account, you can safely ignore this email. + +=== +Github: https://github.com/dani-garcia/bitwarden_rs diff --git a/src/static/templates/email/welcome_must_verify.hbs b/src/static/templates/email/welcome_must_verify.hbs @@ -1,12 +1,10 @@ Welcome <!----------------> -<html> -<p> -Thank you for creating an account at <a href="{{url}}/">{{url}}</a>. Before you can login with your new account, you must verify this email address by clicking the link below. -<br> -<br> -<a href="{{url}}/#/verify-email/?userId={{user_id}}&token={{token}}"> -Verify Email Address Now</a> -</p> -<p>If you did not request to create an account, you can safely ignore this email.</p> -</html> +Thank you for creating an account at {{url}}. Before you can login with your new account, you must verify this email address by clicking the link below. + +Verify Email Address Now: {{url}}/#/verify-email/?userId={{user_id}}&token={{token}} + +If you did not request to create an account, you can safely ignore this email. + +=== +Github: https://github.com/dani-garcia/bitwarden_rs