Skip to content

Commit 4359252

Browse files
committed
Fix a @schrej bug
1 parent 9ea88b5 commit 4359252

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/Http/Controllers/Base/AccountController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
use Alert;
2828

29+
use Pterodactyl\Models\User;
2930
use Pterodactyl\Exceptions\DisplayException;
3031
use Pterodactyl\Http\Controllers\Controller;
3132

@@ -84,7 +85,7 @@ public function password(Request $request)
8485

8586
$this->validate($request, [
8687
'current_password' => 'required',
87-
'new_password' => 'required|confirmed|different:current_password|' . Models\User::PASSWORD_RULES,
88+
'new_password' => 'required|confirmed|different:current_password|' . User::PASSWORD_RULES,
8889
'new_password_confirmation' => 'required'
8990
]);
9091

0 commit comments

Comments
 (0)