Skip to content

Commit

Permalink
Clear session on impersonation exception
Browse files Browse the repository at this point in the history
  • Loading branch information
erikn69 authored Feb 28, 2024
1 parent d8ab69f commit 92059bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Services/ImpersonateManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ public function take($from, $to, $guardName = null)

} catch (\Exception $e) {
unset($e);
$this->clear();
return false;
}

Expand Down

0 comments on commit 92059bb

Please sign in to comment.