1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-24 00:35:59 +00:00

Update AdminCuratedRegisterController, fix existing account approval

This commit is contained in:
Daniel Supernault 2024-05-16 05:45:31 -06:00
parent 1ff71b2e61
commit cbb96cfd2a
No known key found for this signature in database
GPG key ID: 23740873EE6F76A1

View file

@ -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,