forked from Archives/Athou_commafeed
avoid exposing the smtp host/port when an email could not be sent
This commit is contained in:
@@ -276,10 +276,7 @@ public class UserREST {
|
|||||||
return Response.ok().build();
|
return Response.ok().build();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error(e.getMessage(), e);
|
log.error(e.getMessage(), e);
|
||||||
return Response.status(Status.INTERNAL_SERVER_ERROR)
|
return Response.status(Status.INTERNAL_SERVER_ERROR).entity("could not send email").type(MediaType.TEXT_PLAIN).build();
|
||||||
.entity("could not send email: " + e.getMessage())
|
|
||||||
.type(MediaType.TEXT_PLAIN)
|
|
||||||
.build();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user