Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Commit

Permalink
use qu1ckkk feedback and use sha1 instead of md5
Browse files Browse the repository at this point in the history
  • Loading branch information
herpaderpaldent committed Mar 28, 2019
1 parent baaf354 commit a86b557
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
namespace Herpaderpaldent\Seat\SeatGroups\Notifications\MissingRefreshToken;

use Herpaderpaldent\Seat\SeatNotifications\Notifications\AbstractNotification;
use Illuminate\Support\Facades\Cache;
use Seat\Web\Models\User;

abstract class AbstractMissingRefreshTokenNotification extends AbstractNotification
Expand Down Expand Up @@ -142,7 +141,7 @@ public function dontSend($notifiable) :bool
'content' => get_object_vars($this)
])->toJson();

$key = md5($value);
$key = sha1($value);

if (empty(cache($key))) {
cache([$key => $value], now()->addHours(4));
Expand Down

0 comments on commit a86b557

Please sign in to comment.