Returning the Nonce where it was originally.

This commit is contained in:
Luis Fernando Molina committed 2018-07-28 17:53:23 +02:00
1 parent b6b87282b0
commit 7ff13067a1
2 files changed
+3 -4

No files matched your search

+3 -2
View File
@@ -18,7 +18,8 @@
// Module dependencies
var crypto = require('crypto'),
request = require('request');
request = require('request'),
nonce = require('nonce')();
// Constants
var version = '0.0.8',
@@ -121,7 +122,7 @@
parameters || (parameters = {});
parameters.command = command;
parameters.nonce = global.nonce();
parameters.nonce = nonce();
options = {
method: 'POST',
-2
View File
@@ -32,8 +32,6 @@ process.on('exit', function (code) {
global.USER_PROFILE = {};
global.EMAIL_CONFIG = {};
global.nonce = require('nonce')(); // We need a nonce generator that is global so that nonce is generated with a lower number in any case.
readStoragePermissions();
function readStoragePermissions() {