diff --git a/backend/app/Mail/UserAccountActivated.php b/backend/app/Mail/UserAccountActivated.php new file mode 100644 index 0000000..a60ba9c --- /dev/null +++ b/backend/app/Mail/UserAccountActivated.php @@ -0,0 +1,58 @@ +name = $name; + } + + /** + * Get the message envelope. + */ + public function envelope(): Envelope + { + return new Envelope( + subject: 'User Account Activated', + ); + } + + /** + * Get the message content definition. + */ + public function content(): Content + { + return new Content( + view: 'mail.activation.completed', + with: [ + "name" => $this->name, + ] + ); + } + + /** + * Get the attachments for the message. + * + * @return array + */ + public function attachments(): array + { + return []; + } +} diff --git a/backend/app/Mail/UserRegistrationCompleted.php b/backend/app/Mail/UserRegistrationCompleted.php index f4c6a57..523343d 100644 --- a/backend/app/Mail/UserRegistrationCompleted.php +++ b/backend/app/Mail/UserRegistrationCompleted.php @@ -14,15 +14,15 @@ class UserRegistrationCompleted extends Mailable use Queueable, SerializesModels; private string $name; - private string $password; + private string $activation_token; /** * Create a new message instance. */ - public function __construct(string $name, string $password) + public function __construct(string $name, string $activation_token) { $this->name = $name; - $this->password = $password; + $this->activation_token = $activation_token; } /** @@ -44,7 +44,7 @@ class UserRegistrationCompleted extends Mailable view: 'mail.registration.completed', with: [ "name" => $this->name, - "password" => $this->password + "activation_token" => $this->activation_token ] ); } diff --git a/backend/resources/views/mail/activation/completed.blade.php b/backend/resources/views/mail/activation/completed.blade.php new file mode 100644 index 0000000..d6212b4 --- /dev/null +++ b/backend/resources/views/mail/activation/completed.blade.php @@ -0,0 +1,8 @@ +@include("parts.header") +

Vážená/ý {{ $name }},

+

úspešne ste aktivovali váš účet!

+
+ +

s pozdravom

+

Systém ISOP UKF

+@include("parts.footer") \ No newline at end of file diff --git a/backend/resources/views/mail/registration/completed.blade.php b/backend/resources/views/mail/registration/completed.blade.php index a712bc7..b35e6f6 100644 --- a/backend/resources/views/mail/registration/completed.blade.php +++ b/backend/resources/views/mail/registration/completed.blade.php @@ -3,7 +3,12 @@

vaša registrácia do systému ISOP UKF prebehla úspešne!


-

Vaše heslo je: {{ $password }}

+

Aktivujte účet pomocou nasledujúceho linku:

+
+

+ {{ config('app.frontend_url') }}/account/activation/{{ $activation_token }} +