From 3f1a35ac58d52fea345018851883f23c9044e567 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Wed, 21 Nov 2018 10:31:14 -0500 Subject: [PATCH] Token handling for downloads --- public/js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/main.js b/public/js/main.js index 1864638..9cead12 100644 --- a/public/js/main.js +++ b/public/js/main.js @@ -266,10 +266,10 @@ $(function() { task.resetOutput(); }); Task.prototype.download = function() { - location.href = "/task/" + this.uuid + "/download/all.zip"; + location.href = "/task/" + this.uuid + "/download/all.zip?token=" + token; }; Task.prototype.downloadOrthophoto = function() { - location.href = "/task/" + this.uuid + "/download/orthophoto.tif"; + location.href = "/task/" + this.uuid + "/download/orthophoto.tif?token=" + token; }; var taskList = new TaskList();