From 76027bc9c72dcf039dcd755daf847449cafdbdb4 Mon Sep 17 00:00:00 2001 From: Jack Jenkins Date: Mon, 15 May 2017 20:04:03 +0100 Subject: [PATCH 01/12] Limit login box width --- public/themes/pterodactyl/css/pterodactyl.css | 1 + 1 file changed, 1 insertion(+) diff --git a/public/themes/pterodactyl/css/pterodactyl.css b/public/themes/pterodactyl/css/pterodactyl.css index c275c3d2..05960001 100644 --- a/public/themes/pterodactyl/css/pterodactyl.css +++ b/public/themes/pterodactyl/css/pterodactyl.css @@ -28,6 +28,7 @@ .login-box, .register-box { width: 40%; + max-width: 500px; margin: 7% auto; } From 3877aba3731c30f6d3e08b838d1fd2ba7e575204 Mon Sep 17 00:00:00 2001 From: Jakob Schrettenbrunner Date: Tue, 16 May 2017 12:09:29 +0200 Subject: [PATCH 02/12] fix google recaptcha badge --- public/themes/pterodactyl/css/pterodactyl.css | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/public/themes/pterodactyl/css/pterodactyl.css b/public/themes/pterodactyl/css/pterodactyl.css index 05960001..afc0377c 100644 --- a/public/themes/pterodactyl/css/pterodactyl.css +++ b/public/themes/pterodactyl/css/pterodactyl.css @@ -304,3 +304,10 @@ input.form-autocomplete-stop[readonly] { background: inherit; cursor: text; } + +/* fix Google Recaptcha badge */ +.grecaptcha-badge { + bottom: 54px !important; + background: white; + box-shadow: none !important; +} From 999411da293d3d35ff31709a9d63587f28bae8cb Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Mon, 22 May 2017 18:43:49 -0500 Subject: [PATCH 03/12] Fix inability to assign services with no variables, closes #447 --- CHANGELOG.md | 4 ++++ app/Repositories/ServerRepository.php | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d9108b8..8586931f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ This file is a running track of new features and fixes to each version of the pa This project follows [Semantic Versioning](http://semver.org) guidelines. +## v0.6.1 (Courageous Carniadactylus) +### Fixed +* Fixes a bug preventing the use of services that have no variables attached to them. + ## v0.6.0 (Courageous Carniadactylus) ### Fixed * Bug causing error logs to be spammed if someone timed out on an ajax based page. diff --git a/app/Repositories/ServerRepository.php b/app/Repositories/ServerRepository.php index 46e30b5d..e75b31ba 100644 --- a/app/Repositories/ServerRepository.php +++ b/app/Repositories/ServerRepository.php @@ -733,6 +733,10 @@ class ServerRepository $i++; } + if ($parsed->count() === 0) { + return collect($merge); + } + return $parsed->merge($merge); } From 72c03304863b086829603fcff7476f3beed88c19 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Mon, 22 May 2017 19:09:42 -0500 Subject: [PATCH 04/12] Fixes 2FA not honoring 'Remember Me' checkbox, closes #439 --- CHANGELOG.md | 5 +++++ app/Http/Controllers/Auth/LoginController.php | 6 ++++-- config/session.php | 4 ++-- .../themes/pterodactyl/auth/totp.blade.php | 19 ++++++++++++++----- 4 files changed, 25 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8586931f..196b6fc8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,11 @@ This project follows [Semantic Versioning](http://semver.org) guidelines. ## v0.6.1 (Courageous Carniadactylus) ### Fixed * Fixes a bug preventing the use of services that have no variables attached to them. +* Fixes 'Remember Me' checkbox being ignored when using 2FA on an account. + +### Changed +* Renamed session cookies from `laravel_session` to `pterodactyl_session`. +* Sessions are now encrypted before being stored as an additional layer of security. ## v0.6.0 (Courageous Carniadactylus) ### Fixed diff --git a/app/Http/Controllers/Auth/LoginController.php b/app/Http/Controllers/Auth/LoginController.php index cca63264..e4ca0d2c 100644 --- a/app/Http/Controllers/Auth/LoginController.php +++ b/app/Http/Controllers/Auth/LoginController.php @@ -134,7 +134,9 @@ class LoginController extends Controller ])), ], 5); - return redirect()->route('auth.totp')->with('authentication_token', $token); + return redirect()->route('auth.totp') + ->with('authentication_token', $token) + ->with('remember', $request->has('remember')); } $attempt = Auth::attempt([ @@ -167,7 +169,7 @@ class LoginController extends Controller return view('auth.totp', [ 'verify_key' => $token, - 'remember' => $request->has('remember'), + 'remember' => $request->session()->get('remember'), ]); } diff --git a/config/session.php b/config/session.php index 246fc934..97b622fc 100644 --- a/config/session.php +++ b/config/session.php @@ -44,7 +44,7 @@ return [ | */ - 'encrypt' => false, + 'encrypt' => true, /* |-------------------------------------------------------------------------- @@ -122,7 +122,7 @@ return [ | */ - 'cookie' => 'laravel_session', + 'cookie' => 'pterodactyl_session', /* |-------------------------------------------------------------------------- diff --git a/resources/themes/pterodactyl/auth/totp.blade.php b/resources/themes/pterodactyl/auth/totp.blade.php index 4a021603..ebf62aa2 100644 --- a/resources/themes/pterodactyl/auth/totp.blade.php +++ b/resources/themes/pterodactyl/auth/totp.blade.php @@ -23,20 +23,29 @@ 2FA Checkpoint @endsection +@section('scripts') + @parent + +@endsection + @section('content')