forked from Alex/Pterodactyl-Panel
Require new password
This commit is contained in:
parent
2eb6ab4d63
commit
d6640eacec
@ -34,6 +34,9 @@ class UpdatePasswordRequest extends ClientApiRequest
|
||||
{
|
||||
$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 New Issue
Block a user