diff --git a/app/Http/Controllers/SettingsController.php b/app/Http/Controllers/SettingsController.php index 9b2a3c230..9cc207b75 100644 --- a/app/Http/Controllers/SettingsController.php +++ b/app/Http/Controllers/SettingsController.php @@ -133,6 +133,11 @@ class SettingsController extends Controller $user = Auth::user(); abort_if(! config('pixelfed.account_deletion'), 403); abort_if($user->is_admin, 403); + + $this->validate($request, [ + 'confirm' => 'required|accepted', + ]); + $profile = $user->profile; $ts = Carbon::now()->addMonth(); $user->email = $user->id; diff --git a/resources/views/settings/remove/permanent.blade.php b/resources/views/settings/remove/permanent.blade.php index a805ce668..904bc53f3 100644 --- a/resources/views/settings/remove/permanent.blade.php +++ b/resources/views/settings/remove/permanent.blade.php @@ -23,7 +23,7 @@
@csrf
- +
@@ -48,4 +48,4 @@ $(document).ready(function() { }); }); -@endpush \ No newline at end of file +@endpush