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' ]);