diff --git a/app/controllers/auth.php b/app/controllers/auth.php index dd1ad54804..0eb5986524 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 c98c6e1541..183fb98b3a 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