From 4359252545fc325cf76cf7ab149dda006d8bdc06 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Fri, 4 Nov 2016 21:46:16 -0400 Subject: [PATCH] Fix a @schrej bug --- app/Http/Controllers/Base/AccountController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/Base/AccountController.php b/app/Http/Controllers/Base/AccountController.php index a532a0a2e..a58c691a8 100644 --- a/app/Http/Controllers/Base/AccountController.php +++ b/app/Http/Controllers/Base/AccountController.php @@ -26,6 +26,7 @@ namespace Pterodactyl\Http\Controllers\Base; use Alert; +use Pterodactyl\Models\User; use Pterodactyl\Exceptions\DisplayException; use Pterodactyl\Http\Controllers\Controller; @@ -84,7 +85,7 @@ class AccountController extends Controller $this->validate($request, [ 'current_password' => 'required', - 'new_password' => 'required|confirmed|different:current_password|' . Models\User::PASSWORD_RULES, + 'new_password' => 'required|confirmed|different:current_password|' . User::PASSWORD_RULES, 'new_password_confirmation' => 'required' ]);