diff --git a/app/Http/Controllers/AdminCuratedRegisterController.php b/app/Http/Controllers/AdminCuratedRegisterController.php index 4e1d0eec..afdcfba1 100644 --- a/app/Http/Controllers/AdminCuratedRegisterController.php +++ b/app/Http/Controllers/AdminCuratedRegisterController.php @@ -240,6 +240,11 @@ class AdminCuratedRegisterController extends Controller $record->is_closed = true; $record->action_taken_at = now(); $record->save(); + + if (User::withTrashed()->whereEmail($record->email)->exists()) { + return [200]; + } + $user = User::create([ 'name' => $record->username, 'username' => $record->username,