mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 17:01:16 +00:00
Update email management code
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Jobs\SendAccountDeletedEmail;
|
||||
use App\Models\User;
|
||||
use Blacklight\NZBGet;
|
||||
use Blacklight\SABnzbd;
|
||||
@@ -350,6 +351,7 @@ class ProfileController extends BasePageController
|
||||
if ($userId !== null && (int) $userId === $this->userdata->id && ! $this->userdata->hasRole('Admin')) {
|
||||
Auth::logout();
|
||||
$user = User::find($userId);
|
||||
SendAccountDeletedEmail::dispatch($user)->onQueue('deleted');
|
||||
$user->delete();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user