Skip to content

Commit

Permalink
Delete magic on all exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
aaemnnosttv committed Jun 3, 2023
1 parent b4a7d9a commit 2d9efe6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions plugin/wp-cli-login-server.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,8 @@ public function run()
$user = $this->validate($magic);
$this->loginUser($user);
$this->loginRedirect($user, $magic->redirect_url);
} catch (AuthenticationFailure $e) {
$this->deleteMagic();
$this->abort($e);
} catch (Exception $e) {
$this->deleteMagic();
$this->abort($e);
}
}
Expand Down

0 comments on commit 2d9efe6

Please sign in to comment.