mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Send account deletion emails without queues
This commit is contained in:
@@ -362,9 +362,9 @@ class ProfileController extends BasePageController
|
||||
$userId = $request->input('id');
|
||||
|
||||
if ($userId !== null && (int) $userId === $this->userdata->id && ! $this->userdata->hasRole('Admin')) {
|
||||
Auth::logout();
|
||||
$user = User::find($userId);
|
||||
SendAccountDeletedEmail::dispatch($user)->onQueue('deleted');
|
||||
SendAccountDeletedEmail::dispatch($user);
|
||||
Auth::logout();
|
||||
$user->delete();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user