mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-29 09:43:16 +00:00
Update AdminCuratedRegisterController, fix existing account approval
This commit is contained in:
parent
1ff71b2e61
commit
cbb96cfd2a
1 changed files with 5 additions and 0 deletions
|
@ -240,6 +240,11 @@ class AdminCuratedRegisterController extends Controller
|
||||||
$record->is_closed = true;
|
$record->is_closed = true;
|
||||||
$record->action_taken_at = now();
|
$record->action_taken_at = now();
|
||||||
$record->save();
|
$record->save();
|
||||||
|
|
||||||
|
if (User::withTrashed()->whereEmail($record->email)->exists()) {
|
||||||
|
return [200];
|
||||||
|
}
|
||||||
|
|
||||||
$user = User::create([
|
$user = User::create([
|
||||||
'name' => $record->username,
|
'name' => $record->username,
|
||||||
'username' => $record->username,
|
'username' => $record->username,
|
||||||
|
|
Loading…
Reference in a new issue