Skip to content
Snippets Groups Projects
Commit 7b9d1cdc authored by Lloyd Hilaiel's avatar Lloyd Hilaiel
Browse files

(mysql) fix how parameters are processed: namely allow undefined passwords. sheesh.

parent 5df60796
No related branches found
No related tags found
No related merge requests found
......@@ -94,13 +94,13 @@ exports.open = function(cfg, cb) {
const defParams = {
host: '127.0.0.1',
port: "3306",
user: 'test',
password: 'pass',
user: undefined,
password: undefined,
unit_test: false
};
Object.keys(defParams).forEach(function(param) {
client[param] = cfg[param] ? cfg[param] : defParams[param];
client[param] = cfg[param] !== undefined ? cfg[param] : defParams[param];
});
// let's figure out the database name
......
......@@ -58,8 +58,7 @@ exports.get = function(val) {
var defaultHostedDatabaseConfig = {
driver: "mysql",
user: 'browserid',
password: 'browserid'
user: 'browserid'
};
// various deployment configurations
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment