Skip to content

Commit

Permalink
Staging (#276)
Browse files Browse the repository at this point in the history
* increase poolSize for mongoclient

* mongodb conn string

* remove certs

* Encryption (#272)

* Import Data

* Import Data

* Import Data

* Import API Update

* Import API Fix

* Update

* Updates Import API

* Updates Import API

* Updates Import API

* Import API Update

* Update

* Import API Update

* Import API Update

* chaging rolling update to api

* Import API Fix

* Import API Fix

* Import API Test

* Import API Test

* Import API Fix

* Update README.md

* Import Export API

* Import Export API (#262)

* Import Export API

* Import API

* Import Export API (#263)

* Import Export API

* Import Export API

* Import API

* fixed realTime for multiple tables on a single client

* added cache-control for app-icon images (#269)

* Update README.md

* added cache-control for app-icon images

* Encryption

* Encryption

* Encryption

* Resolve

* Encryption Changes

* Encryption Changes
  • Loading branch information
shubhamqweasd authored Nov 27, 2017
1 parent c2eb72c commit 69d8ab3
Show file tree
Hide file tree
Showing 8 changed files with 253 additions and 5,943 deletions.
1 change: 1 addition & 0 deletions api/app/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ module.exports = function () {

global.appService.createDefaultTables(appId).then(function () {
console.log("Success : App Successfully Created.");
delete app.keys.encryption_key;
res.status(200).send(app);
}, function (err) {
console.log("Error : Cannot create an app.");
Expand Down
17 changes: 10 additions & 7 deletions api/pages/Page.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ module.exports = function() {

appKeys.masterKey=list[0].keys.master;
var appSettingsObject=list[1];
list[0].keys.encryption_key ? delete list[0].keys.encryption_key : null;

var general=_.first(_.where(appSettingsObject, {category: "general"}));
var auth=_.first(_.where(appSettingsObject, {category: "auth"}));
Expand Down Expand Up @@ -75,13 +76,15 @@ module.exports = function() {
"message": "New Password is required."
});
}

global.userService.resetUserPassword(appId, username, newPassword, resetKey, customHelper.getAccessList(req), true)
.then(function(result) {
res.json({message : "Password changed successfully."});
}, function(error) {
res.json(400, {
error: error

global.appService.getApp(appId).then(function (application) {
global.userService.resetUserPassword(appId, username, newPassword, resetKey, customHelper.getAccessList(req), true, application.keys.encryption_key)
.then(function(result) {
res.json({message : "Password changed successfully."});
}, function(error) {
res.json(400, {
error: error
});
});
});

Expand Down
Loading

0 comments on commit 69d8ab3

Please sign in to comment.