. */ declare(strict_types=1); namespace FireflyIII\Http\Requests; use FireflyIII\Support\Request\ChecksLogin; use Illuminate\Foundation\Http\FormRequest; /** * Class TokenFormRequest. * * @codeCoverageIgnore */ class TokenFormRequest extends FormRequest { use ChecksLogin; /** * Rules for this request. * * @return array */ public function rules(): array { // fixed return [ 'code' => 'required|2faCode', ]; } }