Fix a @schrej bug

This commit is contained in:
Dane Everitt 2016-11-04 21:46:16 -04:00
parent 9ea88b5053
commit 4359252545
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -26,6 +26,7 @@ namespace Pterodactyl\Http\Controllers\Base;
use Alert; use Alert;
use Pterodactyl\Models\User;
use Pterodactyl\Exceptions\DisplayException; use Pterodactyl\Exceptions\DisplayException;
use Pterodactyl\Http\Controllers\Controller; use Pterodactyl\Http\Controllers\Controller;
@ -84,7 +85,7 @@ class AccountController extends Controller
$this->validate($request, [ $this->validate($request, [
'current_password' => 'required', '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' 'new_password_confirmation' => 'required'
]); ]);