Use actual apikey properties

This commit is contained in:
Daniel García Aubert 2018-02-12 17:49:50 +01:00
parent c003a491c0
commit 7c859f0d7b

View File

@ -134,7 +134,7 @@ UserDatabaseService.prototype.getConnectionParams = function (authApi, cdbUserna
}
if (apiKey.type !== 'default') {
dbopts = _.extend(dbopts, { user: apiKey.dbRole, pass: apiKey.dbPassword });
dbopts = _.extend(dbopts, { user: apiKey.databaseRole, pass: apiKey.databasePassword });
}
next(null, dbopts, authDbOpts, userLimits);