diff --git a/src/Core/Core.csproj b/src/Core/Core.csproj
index 439d6fcc38..0ed515e975 100644
--- a/src/Core/Core.csproj
+++ b/src/Core/Core.csproj
@@ -14,11 +14,24 @@
+ To finalize changing your email address enter the following code in the pop-up window: @Model.Token +
diff --git a/src/Core/MailTemplates/ChangeEmail.text.cshtml b/src/Core/MailTemplates/ChangeEmail.text.cshtml new file mode 100644 index 0000000000..14a20324c0 --- /dev/null +++ b/src/Core/MailTemplates/ChangeEmail.text.cshtml @@ -0,0 +1,6 @@ +@model Bit.Core.Models.Mail.ChangeEmailViewModel +@{ + Layout = "_BasicMailLayout"; +} +To finalize changing your email address enter the +following code in the pop-up window: @Model.Token diff --git a/src/Core/MailTemplates/ChangeEmailAlreadyExists.cshtml b/src/Core/MailTemplates/ChangeEmailAlreadyExists.cshtml new file mode 100644 index 0000000000..fd0ec2e08a --- /dev/null +++ b/src/Core/MailTemplates/ChangeEmailAlreadyExists.cshtml @@ -0,0 +1,11 @@ +@model Bit.Core.Models.Mail.ChangeEmailExistsViewModel +@{ + Layout = "_BasicMailLayout"; +} ++ A user (@Model.FromEmail) recently tried to change their account to use this + email address (@Model.ToEmail). An account already exists with this email (@Model.ToEmail). +
++ If you did not try to change an email address, you can safely ignore this email. +
\ No newline at end of file diff --git a/src/Core/MailTemplates/ChangeEmailAlreadyExists.text.cshtml b/src/Core/MailTemplates/ChangeEmailAlreadyExists.text.cshtml new file mode 100644 index 0000000000..5e8d2a6bf7 --- /dev/null +++ b/src/Core/MailTemplates/ChangeEmailAlreadyExists.text.cshtml @@ -0,0 +1,12 @@ +@model Bit.Core.Models.Mail.ChangeEmailExistsViewModel +@{ + Layout = "_BasicMailLayout"; +} +A user ({{fromEmail}}) recently tried to +change their account to use this email +address ({{toEmail}}). An account already +exists with this email ({{toEmail}}). + +If you did not try to change an email +address, you can safely ignore this +email. diff --git a/src/Core/MailTemplates/MasterPasswordHint.text.cshtml b/src/Core/MailTemplates/MasterPasswordHint.text.cshtml index 2df848e378..dfec7d69c7 100644 --- a/src/Core/MailTemplates/MasterPasswordHint.text.cshtml +++ b/src/Core/MailTemplates/MasterPasswordHint.text.cshtml @@ -2,10 +2,12 @@ @{ Layout = "_BasicMailLayout.text"; } -You (or someone) recently requested your master password hint. +You (or someone) recently requested your master +password hint. Your hint is: "@Model.Hint" Login: @Model.WebVaultUrl -If you did not request your master password hint you can safely ignore this email. +If you did not request your master password hint +you can safely ignore this email. diff --git a/src/Core/MailTemplates/NoMasterPasswordHint.text.cshtml b/src/Core/MailTemplates/NoMasterPasswordHint.text.cshtml index 6ff6cdd03c..f9ddbf84ce 100644 --- a/src/Core/MailTemplates/NoMasterPasswordHint.text.cshtml +++ b/src/Core/MailTemplates/NoMasterPasswordHint.text.cshtml @@ -2,6 +2,9 @@ @{ Layout = "_BasicMailLayout"; } -You (or someone) recently requested your master password hint. Unfortunately, your account does not have a master password hint. +You (or someone) recently requested your +master password hint. Unfortunately, your +account does not have a master password hint. -If you did not request your master password hint you can safely ignore this email. +If you did not request your master password +hint you can safely ignore this email. diff --git a/src/Core/MailTemplates/OrganizationUserAccepted.cshtml b/src/Core/MailTemplates/OrganizationUserAccepted.cshtml new file mode 100644 index 0000000000..8a6558c8ae --- /dev/null +++ b/src/Core/MailTemplates/OrganizationUserAccepted.cshtml @@ -0,0 +1,7 @@ +@model Bit.Core.Models.Mail.OrganizationUserAcceptedViewModel +@{ + Layout = "_BasicMailLayout"; +} +This email is to notify you that @Model.UserEmail has accepted your invitation to join @Model.OrganizationName.
+To confirm this user, log into the bitwarden web vault, manage your organization "People, and confirm the user.
+If you do not wish to confirm this user, you can also remove them from the organization on the same page.
diff --git a/src/Core/MailTemplates/OrganizationUserAccepted.text.cshtml b/src/Core/MailTemplates/OrganizationUserAccepted.text.cshtml new file mode 100644 index 0000000000..0d645fc09b --- /dev/null +++ b/src/Core/MailTemplates/OrganizationUserAccepted.text.cshtml @@ -0,0 +1,15 @@ +@model Bit.Core.Models.Mail.OrganizationUserConfirmedViewModel +@{ + Layout = "_BasicMailLayout.text"; +} +This email is to notify you that @Model.UserEmail +has accepted your invitation to join +@Model.OrganizationName. + +To confirm this user, log into the bitwarden +web vault, manage your organization "People" +and confirm the user. + +If you do not wish to confirm this user, +you can also remove them from the +organization on the same page. diff --git a/src/Core/MailTemplates/OrganizationUserConfirmed.cshtml b/src/Core/MailTemplates/OrganizationUserConfirmed.cshtml new file mode 100644 index 0000000000..b44ae3d610 --- /dev/null +++ b/src/Core/MailTemplates/OrganizationUserConfirmed.cshtml @@ -0,0 +1,6 @@ +@model Bit.Core.Models.Mail.OrganizationUserConfirmedViewModel +@{ + Layout = "_BasicMailLayout"; +} +This email is to notify you that you have been confirmed as a user of @(Model.OrganizationName).
+Any collections and logins being shared with you by this organization will now appear in your bitwarden vault.
diff --git a/src/Core/MailTemplates/OrganizationUserConfirmed.text.cshtml b/src/Core/MailTemplates/OrganizationUserConfirmed.text.cshtml new file mode 100644 index 0000000000..415605a684 --- /dev/null +++ b/src/Core/MailTemplates/OrganizationUserConfirmed.text.cshtml @@ -0,0 +1,10 @@ +@model Bit.Core.Models.Mail.OrganizationUserConfirmedViewModel +@{ + Layout = "_BasicMailLayout.text"; +} +This email is to notify you that you have been +confirmed as a user of @(Model.OrganizationName). + +Any collections and logins being shared with +you by this organization will now appear in +your bitwarden vault. \ No newline at end of file diff --git a/src/Core/MailTemplates/OrganizationUserInvited.cshtml b/src/Core/MailTemplates/OrganizationUserInvited.cshtml new file mode 100644 index 0000000000..61001f94e4 --- /dev/null +++ b/src/Core/MailTemplates/OrganizationUserInvited.cshtml @@ -0,0 +1,13 @@ +@model Bit.Core.Models.Mail.OrganizationUserInvitedViewModel +@{ + Layout = "_BasicMailLayout"; +} ++ You have been invited to join the @Model.OrganizationName organization. + To accept this invite, click the following link: +
+ ++ If you do not wish to join this organization, you can safely ignore + this email. +
\ No newline at end of file diff --git a/src/Core/MailTemplates/OrganizationUserInvited.text.cshtml b/src/Core/MailTemplates/OrganizationUserInvited.text.cshtml new file mode 100644 index 0000000000..7f2dcd1714 --- /dev/null +++ b/src/Core/MailTemplates/OrganizationUserInvited.text.cshtml @@ -0,0 +1,14 @@ +@model Bit.Core.Models.Mail.OrganizationUserInvitedViewModel +@{ + Layout = "_BasicMailLayout.text"; +} +You have been invited to join the +@Model.OrganizationName organization. +To accept this invite, click the +following link: + +@Model.Url + +If you do not wish to join this +organization, you can safely ignore +this email. \ No newline at end of file diff --git a/src/Core/MailTemplates/Welcome.cshtml b/src/Core/MailTemplates/Welcome.cshtml index 3938405461..05e0461d2b 100644 --- a/src/Core/MailTemplates/Welcome.cshtml +++ b/src/Core/MailTemplates/Welcome.cshtml @@ -1,10 +1,110 @@ @model Bit.Core.Models.Mail.BaseMailModel -@{ +@{ Layout = "_BasicMailLayout"; } - - - - - - \ No newline at end of file +
+
|
+