mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-04 01:04:36 -04: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;
|
namespace App\Http\Livewire\Profile\Settings;
|
||||||
|
|
||||||
|
use Illuminate\Support\Facades\Hash;
|
||||||
use Livewire\Component;
|
use Livewire\Component;
|
||||||
|
|
||||||
class General extends Component
|
class General extends Component
|
||||||
@ -65,7 +66,7 @@ class General extends Component
|
|||||||
$data = $this->validate($this->rules);
|
$data = $this->validate($this->rules);
|
||||||
|
|
||||||
if (!empty($this->password)) {
|
if (!empty($this->password)) {
|
||||||
$this->profile->password = encrypt($this->password);
|
$this->profile->password = Hash::make($this->password);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->profile
|
$this->profile
|
||||||
|
Loading…
x
Reference in New Issue
Block a user