mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-18 22:33:44 +02:00
[L6] Update even more areas of codebase using custom model validation logic
This commit is contained in:
@@ -32,7 +32,7 @@ class UpdatePasswordRequest extends ClientApiRequest
|
||||
*/
|
||||
public function rules(): array
|
||||
{
|
||||
$rules = User::getUpdateRulesForId($this->user()->id);
|
||||
$rules = User::getRulesForUpdate($this->user());
|
||||
|
||||
return ['password' => array_merge($rules['password'], ['confirmed'])];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user