From ec22411f66f670bd8510fd0655af371d8c5ccb12 Mon Sep 17 00:00:00 2001 From: eldadfux Date: Sat, 24 Aug 2019 22:47:50 +0300 Subject: [PATCH] silenced smtp error --- app/controllers/auth.php | 14 +++++++------- app/controllers/teams.php | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/controllers/auth.php b/app/controllers/auth.php index dd1ad5480..0eb598652 100644 --- a/app/controllers/auth.php +++ b/app/controllers/auth.php @@ -147,12 +147,12 @@ $utopia->post('/v1/auth/register') $mail->send(); } catch(Exception $error) { - if($failure) { - $response->redirect($failure); - return; - } + // if($failure) { + // $response->redirect($failure); + // return; + // } - throw new Exception('Problem sending mail: ' . $mail->getError(), 500); + // throw new Exception('Problem sending mail: ' . $mail->getError(), 500); } $webhook @@ -287,7 +287,7 @@ $utopia->post('/v1/auth/register/confirm/resend') $mail->send(); } catch(Exception $error) { - throw new Exception('Problem sending mail: ' . $mail->getError(), 500); + //throw new Exception('Problem sending mail: ' . $mail->getError(), 500); } $response->json(array('result' => 'success')); @@ -519,7 +519,7 @@ $utopia->post('/v1/auth/recovery') $mail->send(); } catch(Exception $error) { - throw new Exception('Problem sending mail: ' . $mail->getError(), 500); + //throw new Exception('Problem sending mail: ' . $mail->getError(), 500); } $audit diff --git a/app/controllers/teams.php b/app/controllers/teams.php index c98c6e154..183fb98b3 100644 --- a/app/controllers/teams.php +++ b/app/controllers/teams.php @@ -383,7 +383,7 @@ $utopia->post('/v1/teams/:teamId/memberships') $mail->send(); } catch(Exception $error) { - throw new Exception('Problem sending mail: ' . $mail->getError(), 500); + //throw new Exception('Problem sending mail: ' . $mail->getError(), 500); } $audit @@ -464,7 +464,7 @@ $utopia->post('/v1/teams/:teamId/memberships/:inviteId/resend') $mail->send(); } catch(Exception $error) { - throw new Exception('Problem sending mail: ' . $mail->getError(), 500); + //throw new Exception('Problem sending mail: ' . $mail->getError(), 500); } $audit