Skip to content

Commit b24ef0c

Browse files
committed
require password
1 parent 51c5c2d commit b24ef0c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Http/Controllers/Inertia/CurrentUserController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class CurrentUserController extends Controller
2222
public function destroy(Request $request, StatefulGuard $auth)
2323
{
2424
$request->validate([
25-
'password' => 'password',
25+
'password' => 'required|string|password',
2626
]);
2727

2828
app(DeletesUsers::class)->delete($request->user()->fresh());

src/Http/Controllers/Inertia/OtherBrowserSessionsController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class OtherBrowserSessionsController extends Controller
2121
public function destroy(Request $request, StatefulGuard $guard)
2222
{
2323
$request->validate([
24-
'password' => 'password',
24+
'password' => 'required|string|password',
2525
]);
2626

2727
$guard->logoutOtherDevices($request->password);

0 commit comments

Comments
 (0)