fixed remote code verification issue
This commit is contained in:
@@ -266,7 +266,7 @@ exports.createRemoteIndex = function (req, res) {
|
|||||||
var filePath;
|
var filePath;
|
||||||
var contentType;
|
var contentType;
|
||||||
|
|
||||||
var adminID = req.body.id;
|
var adminID = req.body.admin_id;
|
||||||
|
|
||||||
form.on('file', function(field, file) {
|
form.on('file', function(field, file) {
|
||||||
// rename the incoming file to the file's name
|
// rename the incoming file to the file's name
|
||||||
@@ -327,7 +327,7 @@ exports.createRemoteIndex = function (req, res) {
|
|||||||
*/
|
*/
|
||||||
exports.deleteRemoteIndex = function (req, res) {
|
exports.deleteRemoteIndex = function (req, res) {
|
||||||
var remoteIndex = req.body;
|
var remoteIndex = req.body;
|
||||||
var adminID = req.body.id;
|
var adminID = req.body.admin_id;
|
||||||
|
|
||||||
var serviceResponse = new ServiceResponse();
|
var serviceResponse = new ServiceResponse();
|
||||||
internalLogic.deleteRemoteIndexWorkUnit(remoteIndex, adminID, function (deleteRemoteErr) {
|
internalLogic.deleteRemoteIndexWorkUnit(remoteIndex, adminID, function (deleteRemoteErr) {
|
||||||
@@ -346,7 +346,7 @@ exports.deleteRemoteIndex = function (req, res) {
|
|||||||
exports.verifyRemoteIndex = function (req, res) {
|
exports.verifyRemoteIndex = function (req, res) {
|
||||||
var remoteIndex = req.body;
|
var remoteIndex = req.body;
|
||||||
var pass = req.body.pass;
|
var pass = req.body.pass;
|
||||||
var adminID = req.body.id;
|
var adminID = req.body.admin_id;
|
||||||
|
|
||||||
var serviceResponse = new ServiceResponse();
|
var serviceResponse = new ServiceResponse();
|
||||||
internalLogic.verifyRemoteIndexWorkUnit(remoteIndex, pass, adminID, function (verifyRemoteErr) {
|
internalLogic.verifyRemoteIndexWorkUnit(remoteIndex, pass, adminID, function (verifyRemoteErr) {
|
||||||
@@ -363,7 +363,7 @@ exports.verifyRemoteIndex = function (req, res) {
|
|||||||
*/
|
*/
|
||||||
exports.fallbackRemoteIndex = function (req, res) {
|
exports.fallbackRemoteIndex = function (req, res) {
|
||||||
var remoteIndex = req.body;
|
var remoteIndex = req.body;
|
||||||
var adminID = req.body.id;
|
var adminID = req.body.admin_id;
|
||||||
|
|
||||||
var serviceResponse = new ServiceResponse();
|
var serviceResponse = new ServiceResponse();
|
||||||
internalLogic.fallbackRemoteIndexWorkUnit(remoteIndex, adminID, function (fallbackRemoteErr) {
|
internalLogic.fallbackRemoteIndexWorkUnit(remoteIndex, adminID, function (fallbackRemoteErr) {
|
||||||
@@ -394,7 +394,7 @@ exports.publishRemoteIndex = function (req, res) {
|
|||||||
*/
|
*/
|
||||||
exports.createBrand = function (req, res) {
|
exports.createBrand = function (req, res) {
|
||||||
var brand = req.body;
|
var brand = req.body;
|
||||||
var adminID = req.body.id;
|
var adminID = req.body.admin_id;
|
||||||
|
|
||||||
var serviceResponse = new ServiceResponse();
|
var serviceResponse = new ServiceResponse();
|
||||||
internalLogic.createBrandWorkUnit(brand, adminID, function (createBrandErr) {
|
internalLogic.createBrandWorkUnit(brand, adminID, function (createBrandErr) {
|
||||||
@@ -430,7 +430,7 @@ exports.createProtocol = function (req, res) {
|
|||||||
var protocol;
|
var protocol;
|
||||||
var filePath;
|
var filePath;
|
||||||
var contentType;
|
var contentType;
|
||||||
var adminID = req.body.id;
|
var adminID = req.body.admin_id;
|
||||||
|
|
||||||
form.on('file', function(field, file) {
|
form.on('file', function(field, file) {
|
||||||
fs.rename(file.path, form.uploadDir + "/" + file.name);
|
fs.rename(file.path, form.uploadDir + "/" + file.name);
|
||||||
|
|||||||
@@ -478,6 +478,7 @@ function verifyRemote() {
|
|||||||
|
|
||||||
remoteToVerify.admin_id = id;
|
remoteToVerify.admin_id = id;
|
||||||
remoteToVerify.token = token;
|
remoteToVerify.token = token;
|
||||||
|
remoteToVerify.pass = pass;
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '/irext/int/verify_remote_index',
|
url: '/irext/int/verify_remote_index',
|
||||||
|
|||||||
Reference in New Issue
Block a user