From c1fb38fb5e516f23908905500ea16d7a071feaa1 Mon Sep 17 00:00:00 2001 From: Oreo Oreoniv <28255085+zKoz210@users.noreply.github.com> Date: Sun, 9 Dec 2018 14:40:03 +0300 Subject: [PATCH] Cleanup --- app/Http/Requests/Base/AccountDataFormRequest.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/Http/Requests/Base/AccountDataFormRequest.php b/app/Http/Requests/Base/AccountDataFormRequest.php index f4bc85789..076cba9bd 100644 --- a/app/Http/Requests/Base/AccountDataFormRequest.php +++ b/app/Http/Requests/Base/AccountDataFormRequest.php @@ -10,15 +10,11 @@ namespace Pterodactyl\Http\Requests\Base; use Pterodactyl\Models\User; -use Illuminate\Validation\Rule; -use Pterodactyl\Traits\Helpers\AvailableLanguages; use Pterodactyl\Http\Requests\FrontendUserFormRequest; use Pterodactyl\Exceptions\Http\Base\InvalidPasswordProvidedException; class AccountDataFormRequest extends FrontendUserFormRequest { - use AvailableLanguages; - /** * @return bool * @throws \Pterodactyl\Exceptions\Http\Base\InvalidPasswordProvidedException @@ -63,7 +59,7 @@ class AccountDataFormRequest extends FrontendUserFormRequest 'name_first' => array_get($modelRules, 'name_first'), 'name_last' => array_get($modelRules, 'name_last'), 'username' => array_get($modelRules, 'username'), - 'language' => 'required|string|' . Rule::in(array_keys($this->getAvailableLanguages())), + 'language' => array_get($modelRules, 'language'), ]; break; default: