academia-de-codigo/noire-server

Server Start throws Errors because of internals.MailSchema.url bad format

Closed this issue · 1 comments

In /lib/config-schema.js (L 92)

internals.mailSchema = {
    templates: Joi.string().uri({ relativeOnly: true }),
    compile: Joi.string().regex(...internals.getFileExtensionRegex('hbs')),
    address: Joi.object().keys({
        signup: Joi.string(),
        passwordReset: Joi.string()
    }),
    url: Joi.object().keys({
        signup: Joi.string().uri({
          /* ==> this was needed for Joi */
            relativeOnly: true
        }),
        passwordReset: Joi.string().uri({
       /* ==> this was needed for Joi */
            relativeOnly: true
        })
    }),
    maximumSignupRequests: Joi.number().positive()
};

Sorry @haldrix, I broke the email validations on my previous commit without noticing...