Use actual apikey properties
This commit is contained in:
parent
c003a491c0
commit
7c859f0d7b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user