fix:password rules should be enforced
This commit is contained in:
@@ -12,7 +12,7 @@ new class extends Component {
|
|||||||
public Portfolio $portfolio;
|
public Portfolio $portfolio;
|
||||||
public User $user;
|
public User $user;
|
||||||
|
|
||||||
#[Rule('required|string|confirmed')]
|
#[Rule('required|string|min:8|confirmed')]
|
||||||
public string $password;
|
public string $password;
|
||||||
|
|
||||||
#[Rule('required|string')]
|
#[Rule('required|string')]
|
||||||
@@ -21,7 +21,7 @@ new class extends Component {
|
|||||||
// methods
|
// methods
|
||||||
public function updatePassword()
|
public function updatePassword()
|
||||||
{
|
{
|
||||||
|
|
||||||
$this->validate();
|
$this->validate();
|
||||||
|
|
||||||
$this->user->password = Hash::make($this->password);
|
$this->user->password = Hash::make($this->password);
|
||||||
|
|||||||
Reference in New Issue
Block a user