KlausTrainer / couch_email_auth

Apache License 2.0
1 stars 1 forks source link

Abort at start time if an essential requirement is missing #23

Open KlausTrainer opened 10 years ago

KlausTrainer commented 10 years ago

If an essential requirement is missing, the service should stop immediately (i.e., at start time) rather than causing problems later. That is, we should provide sensible defaults where possible and have as few requirements as possible. However, there are some prerequisites that we can't provide, and that users have to make sure are available (e.g. the configuration of the address in the "From" header in the email).

TODO: Define which requirements are essential.

KlausTrainer commented 9 years ago

Hint: We could use joi (which we're already using for request validation) in order to validate configuration files at start time.