1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-05 18:52:44 +01:00

Use Hash:: to encrypt passwords

This commit is contained in:
Benjamin Beganović 2020-09-24 14:40:06 +02:00
parent 554e595211
commit 2f089707f4

View File

@ -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