From 2f089707f4094d18b262aac6019d40895255b578 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Thu, 24 Sep 2020 14:40:06 +0200 Subject: [PATCH] Use Hash:: to encrypt passwords --- app/Http/Livewire/Profile/Settings/General.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Livewire/Profile/Settings/General.php b/app/Http/Livewire/Profile/Settings/General.php index ad875c910ec8..249c832458aa 100644 --- a/app/Http/Livewire/Profile/Settings/General.php +++ b/app/Http/Livewire/Profile/Settings/General.php @@ -12,6 +12,7 @@ namespace App\Http\Livewire\Profile\Settings; +use Illuminate\Support\Facades\Hash; use Livewire\Component; class General extends Component @@ -65,7 +66,7 @@ class General extends Component $data = $this->validate($this->rules); if (!empty($this->password)) { - $this->profile->password = encrypt($this->password); + $this->profile->password = Hash::make($this->password); } $this->profile