mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Move account deletion emails sending to user observer
This commit is contained in:
@@ -354,7 +354,6 @@ class ProfileController extends BasePageController
|
||||
|
||||
if ($userId !== null && (int) $userId === $this->userdata->id && ! $this->userdata->hasRole('Admin')) {
|
||||
$user = User::find($userId);
|
||||
SendAccountDeletedEmail::dispatch($user);
|
||||
$user->delete();
|
||||
|
||||
return redirect('login');
|
||||
|
||||
Reference in New Issue
Block a user