mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +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->action_taken_at = now();
|
||||
$record->save();
|
||||
|
||||
if (User::withTrashed()->whereEmail($record->email)->exists()) {
|
||||
return [200];
|
||||
}
|
||||
|
||||
$user = User::create([
|
||||
'name' => $record->username,
|
||||
'username' => $record->username,
|
||||
|
|
Loading…
Reference in a new issue