0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Logged out members signin link in development

no-issue

This makes it easier to test locally when mail config hasn't been setup
This commit is contained in:
Fabien O'Carroll 2019-09-16 09:33:38 +08:00
parent c82418153d
commit 359d89d897

View file

@ -102,6 +102,9 @@ function createApiInstance() {
mail: { mail: {
transporter: { transporter: {
sendMail(message) { sendMail(message) {
if (process.env.NODE_ENV !== 'production') {
common.logging.warn(message.text);
}
return ghostMailer.send(Object.assign({subject: 'Signin'}, message)); return ghostMailer.send(Object.assign({subject: 'Signin'}, message));
} }
} }