<?php

namespace App\Http\Requests\Admin;

use App\Http\Requests\ApiFormRequest;
use App\Http\Requests\Admin\Concerns\AdminAccountFieldRules;

final class AdminPlayerPasswordResetRequest extends ApiFormRequest
{
    use AdminAccountFieldRules;

    public function authorize(): bool
    {
        return true;
    }

    public function rules(): array
    {
        return [
            'password' => [...$this->nativePlayerPasswordRules(required: true), 'confirmed'],
        ];
    }
}
