Require new password

This commit is contained in:
Lance Pioch 2020-04-07 19:22:50 -04:00 committed by GitHub
parent 2eb6ab4d63
commit d6640eacec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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',
];
}
}