Token handling for downloads

pull/51/head
Piero Toffanin 2018-11-21 10:31:14 -05:00
rodzic 1b64ce4b3b
commit 3f1a35ac58
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -266,10 +266,10 @@ $(function() {
task.resetOutput(); task.resetOutput();
}); });
Task.prototype.download = function() { 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() { 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(); var taskList = new TaskList();