芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/www/vendor/laravel/jetstream/src/Http/Livewire/DeleteUserForm.php
resetErrorBag(); $this->password = ''; $this->dispatchBrowserEvent('confirming-delete-user'); $this->confirmingUserDeletion = true; } /** * Delete the current user. * * @param \Laravel\Jetstream\Contracts\DeletesUsers $deleter * @param \Illuminate\Contracts\Auth\StatefulGuard $auth * @return void */ public function deleteUser(DeletesUsers $deleter, StatefulGuard $auth) { $this->resetErrorBag(); if (! Hash::check($this->password, Auth::user()->password)) { throw ValidationException::withMessages([ 'password' => [__('This password does not match our records.')], ]); } $deleter->delete(Auth::user()->fresh()); $auth->logout(); return redirect('/'); } /** * Render the component. * * @return \Illuminate\View\View */ public function render() { return view('profile.delete-user-form'); } }