@@ -26,13 +26,10 @@ |
||
26 | 26 | use Alert; |
27 | 27 | use DB; |
28 | 28 | use Log; |
29 | -use Validator; |
|
30 | - |
|
31 | 29 | use Pterodactyl\Models; |
32 | 30 | use Pterodactyl\Repositories\ServiceRepository; |
33 | 31 | use Pterodactyl\Exceptions\DisplayException; |
34 | 32 | use Pterodactyl\Exceptions\DisplayValidationException; |
35 | - |
|
36 | 33 | use Pterodactyl\Http\Controllers\Controller; |
37 | 34 | use Illuminate\Http\Request; |
38 | 35 |
@@ -25,16 +25,12 @@ |
||
25 | 25 | namespace Pterodactyl\Http\Controllers\Admin; |
26 | 26 | |
27 | 27 | use Alert; |
28 | -use Settings; |
|
29 | -use Mail; |
|
30 | 28 | use Log; |
31 | 29 | use Pterodactyl\Models\User; |
32 | 30 | use Pterodactyl\Repositories\UserRepository; |
33 | 31 | use Pterodactyl\Models\Server; |
34 | - |
|
35 | 32 | use Pterodactyl\Exceptions\DisplayException; |
36 | 33 | use Pterodactyl\Exceptions\DisplayValidationException; |
37 | - |
|
38 | 34 | use Pterodactyl\Http\Controllers\Controller; |
39 | 35 | use Illuminate\Http\Request; |
40 | 36 |
@@ -24,12 +24,8 @@ |
||
24 | 24 | namespace Pterodactyl\Http\Controllers\API; |
25 | 25 | |
26 | 26 | use Illuminate\Http\Request; |
27 | - |
|
28 | 27 | use Pterodactyl\Models; |
29 | -use Pterodactyl\Transformers\NodeTransformer; |
|
30 | -use Pterodactyl\Transformers\AllocationTransformer; |
|
31 | 28 | use Pterodactyl\Repositories\NodeRepository; |
32 | - |
|
33 | 29 | use Pterodactyl\Exceptions\DisplayValidationException; |
34 | 30 | use Pterodactyl\Exceptions\DisplayException; |
35 | 31 | use Dingo\Api\Exception\ResourceException; |
@@ -24,12 +24,9 @@ |
||
24 | 24 | namespace Pterodactyl\Http\Controllers\API; |
25 | 25 | |
26 | 26 | use Illuminate\Http\Request; |
27 | - |
|
28 | 27 | use Log; |
29 | 28 | use Pterodactyl\Models; |
30 | -use Pterodactyl\Transformers\ServerTransformer; |
|
31 | 29 | use Pterodactyl\Repositories\ServerRepository; |
32 | - |
|
33 | 30 | use Pterodactyl\Exceptions\DisplayValidationException; |
34 | 31 | use Pterodactyl\Exceptions\DisplayException; |
35 | 32 | use Dingo\Api\Exception\ResourceException; |
@@ -24,10 +24,7 @@ |
||
24 | 24 | namespace Pterodactyl\Http\Controllers\API; |
25 | 25 | |
26 | 26 | use Illuminate\Http\Request; |
27 | - |
|
28 | 27 | use Pterodactyl\Models; |
29 | -use Pterodactyl\Transformers\ServiceTransformer; |
|
30 | - |
|
31 | 28 | use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
32 | 29 | |
33 | 30 | /** |
@@ -23,11 +23,8 @@ |
||
23 | 23 | */ |
24 | 24 | namespace Pterodactyl\Http\Controllers\API\User; |
25 | 25 | |
26 | -use Auth; |
|
27 | -use Dingo; |
|
28 | 26 | use Pterodactyl\Models; |
29 | 27 | use Illuminate\Http\Request; |
30 | - |
|
31 | 28 | use Pterodactyl\Http\Controllers\API\BaseController; |
32 | 29 | |
33 | 30 | class InfoController extends BaseController |
@@ -27,7 +27,6 @@ |
||
27 | 27 | use Log; |
28 | 28 | use Pterodactyl\Models; |
29 | 29 | use Illuminate\Http\Request; |
30 | - |
|
31 | 30 | use Pterodactyl\Http\Controllers\API\BaseController; |
32 | 31 | |
33 | 32 | class ServerController extends BaseController |
@@ -24,13 +24,9 @@ |
||
24 | 24 | namespace Pterodactyl\Http\Controllers\API; |
25 | 25 | |
26 | 26 | use Illuminate\Http\Request; |
27 | - |
|
28 | 27 | use Dingo\Api\Exception\ResourceException; |
29 | - |
|
30 | 28 | use Pterodactyl\Models; |
31 | -use Pterodactyl\Transformers\UserTransformer; |
|
32 | 29 | use Pterodactyl\Repositories\UserRepository; |
33 | - |
|
34 | 30 | use Pterodactyl\Exceptions\DisplayValidationException; |
35 | 31 | use Pterodactyl\Exceptions\DisplayException; |
36 | 32 | use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
@@ -25,17 +25,11 @@ |
||
25 | 25 | namespace Pterodactyl\Http\Controllers\Auth; |
26 | 26 | |
27 | 27 | use Pterodactyl\Models\User; |
28 | - |
|
29 | 28 | use Auth; |
30 | 29 | use Alert; |
31 | -use Validator; |
|
32 | - |
|
33 | 30 | use Pterodactyl\Http\Controllers\Controller; |
34 | 31 | use PragmaRX\Google2FA\Google2FA; |
35 | 32 | use Illuminate\Http\Request; |
36 | -use Illuminate\Foundation\Auth\ThrottlesLogins; |
|
37 | -use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers; |
|
38 | - |
|
39 | 33 | use Illuminate\Foundation\Auth\AuthenticatesUsers; |
40 | 34 | |
41 | 35 | class LoginController extends Controller |