Compare commits

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

No files matched your search

+1 -1
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 ();
}
+1 -1
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.");