diff options
Diffstat (limited to 'src/application/actions/verifyemail')
-rw-r--r-- | src/application/actions/verifyemail/get.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/application/actions/verifyemail/get.php b/src/application/actions/verifyemail/get.php index 2cc2707..f71dbdc 100644 --- a/src/application/actions/verifyemail/get.php +++ b/src/application/actions/verifyemail/get.php @@ -6,8 +6,16 @@ use Symfony\Component\Mailer\Transport; use Symfony\Component\Mime\Address; use Symfony\Component\Mime\Email; -$token = $_GET["token"] ?? throw new Exception(__("Missing token")); -$sig = $_GET["sig"] ?? throw new Exception(__("Missing signature")); +$token = $_GET["token"] ?? call_user_func(function() { + http_response_code(400); + msg_error(__("Missing token")); + exit; +}); +$sig = $_GET["sig"] ?? call_user_func(function() { + http_response_code(400); + msg_error(__("Missing signature")); + exit; +}); $user = new User(); $user->activationToken = $token; |