commit 29c935839280a28732b3e316e42ed329cf1213d3 Author: smarcet Date: Tue Oct 13 12:16:10 2020 -0300 added email logs Change-Id: I65c384c3ea5459e6a67281b3dd3d94dfda78329c Signed-off-by: smarcet diff --git a/app/Mail/OAuth2ClientLocked.php b/app/Mail/OAuth2ClientLocked.php index a1f9801..2805ff3 100644 --- a/app/Mail/OAuth2ClientLocked.php +++ b/app/Mail/OAuth2ClientLocked.php @@ -17,6 +17,7 @@ use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Support\Facades\Config; +use Illuminate\Support\Facades\Log; use Models\OAuth2\Client; /** @@ -72,7 +73,7 @@ class OAuth2ClientLocked extends Mailable $subject = Config::get("mail.verification_email_subject"); if(empty($subject)) $subject = sprintf("[%s] Verify Email Address", Config::get('app.app_name')); - + Log::warning(sprintf("OAuth2ClientLocked::build to %s", $this->user_email)); return $this->from(Config::get("mail.from")) ->to($this->user_email) ->subject($subject) diff --git a/app/Mail/UserEmailVerificationRequest.php b/app/Mail/UserEmailVerificationRequest.php index b30618a..7f71bbb 100644 --- a/app/Mail/UserEmailVerificationRequest.php +++ b/app/Mail/UserEmailVerificationRequest.php @@ -16,6 +16,7 @@ use Illuminate\Bus\Queueable; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; use Illuminate\Support\Facades\Config; +use Illuminate\Support\Facades\Log; use Illuminate\Support\Facades\URL; /** @@ -75,6 +76,7 @@ final class UserEmailVerificationRequest extends Mailable $view = 'emails.auth.email_verification_request_fn'; $subject = sprintf("%s email verification needed", Config::get('app.app_name')); } + Log::debug(sprintf("UserEmailVerificationRequest::build to %s", $this->user_email)); return $this->from(Config::get("mail.from")) ->to($this->user_email) ->subject($subject) diff --git a/app/Mail/UserEmailVerificationSuccess.php b/app/Mail/UserEmailVerificationSuccess.php index 2d35e6a..b9b88e2 100644 --- a/app/Mail/UserEmailVerificationSuccess.php +++ b/app/Mail/UserEmailVerificationSuccess.php @@ -16,6 +16,8 @@ use Illuminate\Bus\Queueable; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; use Illuminate\Support\Facades\Config; +use Illuminate\Support\Facades\Log; + /** * Class UserEmailVerificationSuccess * @package App\Mail @@ -56,7 +58,7 @@ class UserEmailVerificationSuccess extends Mailable $subject = Config::get("mail.verification_sucessfull_email_subject"); if(empty($subject)) $subject = sprintf("Success! %s email verified", Config::get('app.app_name')); - + Log::debug(sprintf("UserEmailVerificationSuccess::build to %s", $this->user_email)); return $this->from(Config::get("mail.from")) ->to($this->user_email) ->subject($subject) diff --git a/app/Mail/UserLockedEmail.php b/app/Mail/UserLockedEmail.php index bb9054b..da45a3a 100644 --- a/app/Mail/UserLockedEmail.php +++ b/app/Mail/UserLockedEmail.php @@ -17,6 +17,7 @@ use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Support\Facades\Config; +use Illuminate\Support\Facades\Log; /** * Class UserLocked @@ -73,7 +74,7 @@ final class UserLockedEmail extends Mailable $subject = Config::get("mail.locked_user_email_subject"); if(empty($subject)) $subject = sprintf("[%s] Your User has been locked", Config::get('app.app_name')); - + Log::warning(sprintf("UserLockedEmail::build to %s", $this->user_email)); return $this->from(Config::get("mail.from")) ->to($this->user_email) ->subject($subject) diff --git a/app/Mail/UserPasswordResetMail.php b/app/Mail/UserPasswordResetMail.php index 84b88d8..598a4a1 100644 --- a/app/Mail/UserPasswordResetMail.php +++ b/app/Mail/UserPasswordResetMail.php @@ -17,6 +17,8 @@ use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Support\Facades\Config; +use Illuminate\Support\Facades\Log; + /** * Class UserPasswordResetMail * @package App\Mail @@ -57,7 +59,7 @@ final class UserPasswordResetMail extends Mailable $subject = Config::get("mail.reset_password_success_email_subject"); if(empty($subject)) $subject = sprintf("[%s] Your Password Reset was successful", Config::get('app.app_name')); - + Log::debug(sprintf("UserPasswordResetMail::build to %s", $this->user_email)); return $this->from(Config::get("mail.from")) ->to($this->user_email) ->subject($subject) diff --git a/app/Mail/UserPasswordResetRequestMail.php b/app/Mail/UserPasswordResetRequestMail.php index f5a4383..a32cd3a 100644 --- a/app/Mail/UserPasswordResetRequestMail.php +++ b/app/Mail/UserPasswordResetRequestMail.php @@ -18,6 +18,7 @@ use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Support\Facades\Config; +use Illuminate\Support\Facades\Log; /** * Class UserPasswordResetRequestMail @@ -66,7 +67,7 @@ final class UserPasswordResetRequestMail extends Mailable $subject = Config::get("mail.reset_password_email_subject"); if(empty($subject)) $subject = sprintf("[%s] Reset Password Notification", Config::get('app.app_name')); - + Log::debug(sprintf("UserPasswordResetRequestMail::build to %s", $this->user_email)); return $this->from(Config::get("mail.from")) ->to($this->user_email) ->subject($subject) diff --git a/app/Mail/WelcomeNewUserEmail.php b/app/Mail/WelcomeNewUserEmail.php index 88bede3..b8c6d55 100644 --- a/app/Mail/WelcomeNewUserEmail.php +++ b/app/Mail/WelcomeNewUserEmail.php @@ -17,6 +17,7 @@ use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Support\Facades\Config; +use Illuminate\Support\Facades\Log; use Illuminate\Support\Facades\URL; /** @@ -77,7 +78,7 @@ final class WelcomeNewUserEmail extends Mailable $view = 'emails.welcome_new_user_email_fn'; $subject = sprintf("Thank you for registering for an %s account", Config::get('app.app_name')); } - + Log::debug(sprintf("WelcomeNewUserEmail::build to %s", $this->user_email)); return $this->from(Config::get("mail.from")) ->to($this->user_email) ->subject($subject)