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:
parent
554e595211
commit
2f089707f4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user