Skip to content

Commit 9e07f6a

Browse files
committed
Update LoginController
1 parent 0f0a9d5 commit 9e07f6a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app/Http/Controllers/Auth/LoginController.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ protected function authenticated(Request $request, $user)
196196

197197
if (in_array($user->status, [7, 8])) {
198198
$hasRecovered = true;
199+
199200
DB::transaction(function () use ($user) {
200201
$user->update(['status' => 1, 'delete_after' => null]);
201202
$user->profile->update(['status' => 1]);
@@ -204,8 +205,9 @@ protected function authenticated(Request $request, $user)
204205
$user->comments()->whereIn('status', ['account_pending_deletion', 'account_disabled'])->update(['status' => 'active']);
205206
$user->commentReplies()->whereIn('status', ['account_pending_deletion', 'account_disabled'])->update(['status' => 'active']);
206207
$user->actorNotifications()->whereIn('actor_state', [7, 8])->update(['actor_state' => 1]);
207-
AccountService::del($user->profile_id);
208208
});
209+
AccountService::del($user->profile_id);
210+
AccountService::get($user->profile_id);
209211
}
210212

211213
if ($intendedUrl && str_contains($intendedUrl, '/oauth/authorize')) {

0 commit comments

Comments
 (0)