feat: #7743, user/approval, user/auth

This commit is contained in:
Barış Soner Uşaklı
2019-07-11 23:43:00 -04:00
parent 2b70e86f21
commit b24ce97602
4 changed files with 234 additions and 392 deletions

View File

@@ -37,7 +37,7 @@ var app;
var viewsDir = nconf.get('views_dir');
Emailer.getTemplates = function (config, cb) {
Emailer.getTemplates = function (config, callback) {
var emailsPath = path.join(viewsDir, 'emails');
async.waterfall([
function (next) {
@@ -71,7 +71,7 @@ Emailer.getTemplates = function (config, cb) {
], next);
}, next);
},
], cb);
], callback);
};
Emailer.listServices = function (callback) {
@@ -407,3 +407,5 @@ function getHostname() {
return parsed.hostname;
}
require('./promisify')(Emailer, ['transports']);