Fix a @schrej bug
This commit is contained in:
parent
9ea88b5053
commit
4359252545
1 changed files with 2 additions and 1 deletions
|
@ -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'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue