From 485cba47ce677bb93b93da364b0b7f7a48d54001 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 28 Feb 2019 23:13:49 -0700 Subject: [PATCH] Add security email notifications --- app/Mail/EmailChange.php | 33 +++++++++++++++++++ app/Mail/PasswordChange.php | 33 +++++++++++++++++++ .../views/emails/confirm_email.blade.php | 2 +- .../notification/email_change.blade.php | 15 +++++++++ .../notification/password_change.blade.php | 15 +++++++++ 5 files changed, 97 insertions(+), 1 deletion(-) create mode 100644 app/Mail/EmailChange.php create mode 100644 app/Mail/PasswordChange.php create mode 100644 resources/views/emails/notification/email_change.blade.php create mode 100644 resources/views/emails/notification/password_change.blade.php diff --git a/app/Mail/EmailChange.php b/app/Mail/EmailChange.php new file mode 100644 index 000000000..0a3934fd8 --- /dev/null +++ b/app/Mail/EmailChange.php @@ -0,0 +1,33 @@ +markdown('emails.notification.email_change'); + } +} diff --git a/app/Mail/PasswordChange.php b/app/Mail/PasswordChange.php new file mode 100644 index 000000000..f90c10b51 --- /dev/null +++ b/app/Mail/PasswordChange.php @@ -0,0 +1,33 @@ +markdown('emails.notification.password_change'); + } +} diff --git a/resources/views/emails/confirm_email.blade.php b/resources/views/emails/confirm_email.blade.php index 20d388b96..cb521c9b9 100644 --- a/resources/views/emails/confirm_email.blade.php +++ b/resources/views/emails/confirm_email.blade.php @@ -8,5 +8,5 @@ Confirm Email @endcomponent Thanks,
-{{ config('app.name') }} +{{ config('pixelfed.domain.app') }} @endcomponent diff --git a/resources/views/emails/notification/email_change.blade.php b/resources/views/emails/notification/email_change.blade.php new file mode 100644 index 000000000..0a9cc0914 --- /dev/null +++ b/resources/views/emails/notification/email_change.blade.php @@ -0,0 +1,15 @@ +@component('mail::message') +# Account Email Changed + + +@component('mail::panel') +

The email associated to your account has been changed.

+@endcomponent + +If you did not make this change and believe your Pixelfed account has been compromised, please contact the instance admin. + +
+ +Thanks,
+{{ config('pixelfed.domain.app') }} +@endcomponent diff --git a/resources/views/emails/notification/password_change.blade.php b/resources/views/emails/notification/password_change.blade.php new file mode 100644 index 000000000..1ff616e41 --- /dev/null +++ b/resources/views/emails/notification/password_change.blade.php @@ -0,0 +1,15 @@ +@component('mail::message') +# Account Password Changed + + +@component('mail::panel') +

The password for your account has been changed.

+@endcomponent + +If you did not make this change and believe your Pixelfed account has been compromised, please change your password immediately or contact the instance admin if you're locked out of your account. + +
+ +Thanks,
+{{ config('pixelfed.domain.app') }} +@endcomponent