Verified Commit 3d038a5b authored by Korko's avatar Korko
Browse files

Use DrawCrypt instead of Crypt

parent 58a606c1
......@@ -42,7 +42,7 @@ class SendParticipant extends Command
public function handle()
{
$key = base64_decode($this->argument('key'));
Crypt::setKey($key);
DrawCrypt::setKey($key);
$participant = Participant::find($this->argument('participant'));
......
......@@ -4,7 +4,7 @@ namespace App\Mail;
use App;
use App\Models\Draw;
use Crypt;
use DrawCrypt;
use Illuminate\Bus\Queueable;
use Illuminate\Support\Facades\URL;
......@@ -14,7 +14,9 @@ class OrganizerRecap extends Mailable
public $organizerName;
public $expirationDate;
public $deletionDate;
public $panelLink;
public $nextSolvable;
/**
* Create a new message instance.
......@@ -32,7 +34,7 @@ class OrganizerRecap extends Mailable
$this->nextSolvable = $draw->next_solvable;
$this->panelLink = URL::signedRoute('organizerPanel', ['draw' => $draw->hash]).'#'.base64_encode(Crypt::getKey());
$this->panelLink = URL::signedRoute('organizerPanel', ['draw' => $draw->hash]).'#'.base64_encode(DrawCrypt::getKey());
}
/**
......
......@@ -4,7 +4,7 @@ namespace App\Mail;
use App\Models\Mail as MailModel;
use App\Models\Participant;
use Crypt;
use DrawCrypt;
use Illuminate\Bus\Queueable;
use Illuminate\Support\Facades\URL;
......@@ -33,7 +33,7 @@ class TargetDrawn extends TrackedMailable
$this->content = $this->parseKeywords($santa->draw->mail_body, $santa);
$this->dearSantaLink = URL::signedRoute('dearsanta', ['participant' => $santa->hash]).'#'.base64_encode(Crypt::getKey());
$this->dearSantaLink = URL::signedRoute('dearsanta', ['participant' => $santa->hash]).'#'.base64_encode(DrawCrypt::getKey());
$this->track($santa->mail);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment