1
0
Fork 0
mirror of synced 2024-06-29 03:30:34 +12:00

silenced smtp error

This commit is contained in:
eldadfux 2019-08-24 22:47:50 +03:00
parent 26ba01a097
commit ec22411f66
2 changed files with 9 additions and 9 deletions

View file

@ -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

View file

@ -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