You've already forked isop-mirror
emaily na aktivaciu uctu
This commit is contained in:
58
backend/app/Mail/UserAccountActivated.php
Normal file
58
backend/app/Mail/UserAccountActivated.php
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Mail;
|
||||||
|
|
||||||
|
use Illuminate\Bus\Queueable;
|
||||||
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||||
|
use Illuminate\Mail\Mailable;
|
||||||
|
use Illuminate\Mail\Mailables\Content;
|
||||||
|
use Illuminate\Mail\Mailables\Envelope;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
class UserAccountActivated extends Mailable
|
||||||
|
{
|
||||||
|
use Queueable, SerializesModels;
|
||||||
|
|
||||||
|
private string $name;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new message instance.
|
||||||
|
*/
|
||||||
|
public function __construct(string $name)
|
||||||
|
{
|
||||||
|
$this->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<int, \Illuminate\Mail\Mailables\Attachment>
|
||||||
|
*/
|
||||||
|
public function attachments(): array
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -14,15 +14,15 @@ class UserRegistrationCompleted extends Mailable
|
|||||||
use Queueable, SerializesModels;
|
use Queueable, SerializesModels;
|
||||||
|
|
||||||
private string $name;
|
private string $name;
|
||||||
private string $password;
|
private string $activation_token;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new message instance.
|
* Create a new message instance.
|
||||||
*/
|
*/
|
||||||
public function __construct(string $name, string $password)
|
public function __construct(string $name, string $activation_token)
|
||||||
{
|
{
|
||||||
$this->name = $name;
|
$this->name = $name;
|
||||||
$this->password = $password;
|
$this->activation_token = $activation_token;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -44,7 +44,7 @@ class UserRegistrationCompleted extends Mailable
|
|||||||
view: 'mail.registration.completed',
|
view: 'mail.registration.completed',
|
||||||
with: [
|
with: [
|
||||||
"name" => $this->name,
|
"name" => $this->name,
|
||||||
"password" => $this->password
|
"activation_token" => $this->activation_token
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
@include("parts.header")
|
||||||
|
<p>Vážená/ý {{ $name }},</p>
|
||||||
|
<p>úspešne ste aktivovali váš účet!</p>
|
||||||
|
<br />
|
||||||
|
|
||||||
|
<p>s pozdravom</p>
|
||||||
|
<p>Systém ISOP UKF</p>
|
||||||
|
@include("parts.footer")
|
||||||
@@ -3,7 +3,12 @@
|
|||||||
<p>vaša registrácia do systému ISOP UKF prebehla úspešne!</p>
|
<p>vaša registrácia do systému ISOP UKF prebehla úspešne!</p>
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<p>Vaše heslo je: <em>{{ $password }}</em></p>
|
<p>Aktivujte účet pomocou nasledujúceho linku:</p>
|
||||||
|
<br />
|
||||||
|
<p>
|
||||||
|
<a
|
||||||
|
href="{{ config('app.frontend_url') }}/account/activation/{{ $activation_token }}">{{ config('app.frontend_url') }}/account/activation/{{ $activation_token }}</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user