Add revokeSessionOnPasswordReset option. Closes #1584 (#1597)

* Add revokeSessionOnPasswordReset option

* Fix nits
This commit is contained in:
Drew
2016-04-22 15:21:50 -07:00
committed by Florent Vilmart
parent 0d094767cf
commit d33dd68cc5
9 changed files with 96 additions and 17 deletions

View File

@@ -9,7 +9,7 @@ var batch = require('./batch'),
Parse = require('parse/node').Parse,
path = require('path'),
authDataManager = require('./authDataManager');
if (!global._babelPolyfill) {
require('babel-polyfill');
}
@@ -115,6 +115,7 @@ class ParseServer {
liveQuery = {},
sessionLength = 31536000, // 1 Year in seconds
verbose = false,
revokeSessionOnPasswordReset = true,
}) {
// Initialize the node client SDK automatically
Parse.initialize(appId, javascriptKey || 'unused', masterKey);
@@ -186,7 +187,8 @@ class ParseServer {
customPages: customPages,
maxUploadSize: maxUploadSize,
liveQueryController: liveQueryController,
sessionLength : Number(sessionLength),
sessionLength: Number(sessionLength),
revokeSessionOnPasswordReset
});
// To maintain compatibility. TODO: Remove in some version that breaks backwards compatability