client/login: don't show pw reset w/o working smtp

This commit is contained in:
rr-
2016-04-08 20:09:32 +02:00
parent ee28d95537
commit b78d018870
3 changed files with 5 additions and 2 deletions

View File

@ -43,6 +43,7 @@ function getConfig() {
console.warn('Local config does not exist, ignoring');
}
config.canSendMails = !!config.smtp.host;
delete config.secret;
delete config.smtp;
delete config.database;