Require new password
This commit is contained in:
parent
2eb6ab4d63
commit
d6640eacec
1 changed files with 4 additions and 1 deletions
|
@ -34,6 +34,9 @@ class UpdatePasswordRequest extends ClientApiRequest
|
||||||
{
|
{
|
||||||
$rules = User::getRulesForUpdate($this->user());
|
$rules = User::getRulesForUpdate($this->user());
|
||||||
|
|
||||||
return ['password' => array_merge($rules['password'], ['confirmed'])];
|
return [
|
||||||
|
'password' => array_merge($rules['password'], ['confirmed']),
|
||||||
|
'new_password' => 'required|string',
|
||||||
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue