Skip to content

Commit

Permalink
Remove forced state change
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeelio committed Oct 16, 2023
1 parent 0f80f66 commit 8b5ba3c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/Http/Controllers/Auth/VerificationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace App\Http\Controllers\Auth;

use App\Models\Enums\UserState;
use App\Models\User;
use App\Services\UserService;
use Illuminate\Auth\Access\AuthorizationException;
Expand Down Expand Up @@ -63,8 +62,6 @@ public function verify(Request $request)

if ($user->markEmailAsVerified()) {
Log::info('Marking user '.$user->id.' as verified');
$user->state = UserState::ACTIVE;
$this->userSvc->changeUserState($user, UserState::PENDING);
event(new Verified($user));
}

Expand Down

0 comments on commit 8b5ba3c

Please sign in to comment.