Skip to content

Commit

Permalink
require password
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Feb 21, 2021
1 parent 51c5c2d commit b24ef0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Http/Controllers/Inertia/CurrentUserController.php
Expand Up @@ -22,7 +22,7 @@ class CurrentUserController extends Controller
public function destroy(Request $request, StatefulGuard $auth)
{
$request->validate([
'password' => 'password',
'password' => 'required|string|password',
]);

app(DeletesUsers::class)->delete($request->user()->fresh());
Expand Down
Expand Up @@ -21,7 +21,7 @@ class OtherBrowserSessionsController extends Controller
public function destroy(Request $request, StatefulGuard $guard)
{
$request->validate([
'password' => 'password',
'password' => 'required|string|password',
]);

$guard->logoutOtherDevices($request->password);
Expand Down

0 comments on commit b24ef0c

Please sign in to comment.