Compare commits

...

2 Commits

Author SHA1 Message Date
81e6a60def Demo: Changes for ohm-server 2019-07-24 16:55:02 +02:00
389a744ebe Demo: changes for remote mongoDB 2019-07-24 16:54:35 +02:00
2 changed files with 2 additions and 2 deletions

View File

@ -129,7 +129,7 @@ const authorization = {
if (entry != null && entry.pwd) {
if (crypto.checkLocalAuth (entry, req.body.pwd)) {
console.info(entry.roles);
return fillSession (req, entry, JSON.parse(entry.roles), returnSession);
return fillSession (req, entry, entry.roles, returnSession);
}
return returnError ();
}

View File

@ -305,7 +305,7 @@ const dbs = {
* Local db: common.config.dbLocalConn
* TH db: common.config.dbConn
*/
common.mongoose.connect(common.config.dbLocalConn, {
common.mongoose.connect(common.config.dbConn, {
useNewUrlParser: true
}).then(() => {
console.log("Database connected successfully.");