diff options
| author | Pitu <[email protected]> | 2017-01-30 04:41:44 -0300 |
|---|---|---|
| committer | Pitu <[email protected]> | 2017-01-30 04:41:44 -0300 |
| commit | b781237454e7db4c5cd5395c0198fe9c384751ca (patch) | |
| tree | 93fd1b6c641472d0cdf6b5d9a4009827c737fbb8 /public/js/upload.js | |
| parent | Made passwords behave like passwords (diff) | |
| download | host.fuwn.me-b781237454e7db4c5cd5395c0198fe9c384751ca.tar.xz host.fuwn.me-b781237454e7db4c5cd5395c0198fe9c384751ca.zip | |
Replaced auth header with token
Diffstat (limited to 'public/js/upload.js')
| -rw-r--r-- | public/js/upload.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/public/js/upload.js b/public/js/upload.js index b620248..b52f670 100644 --- a/public/js/upload.js +++ b/public/js/upload.js @@ -36,7 +36,6 @@ upload.verifyToken = function(token, reloadOnError){ reloadOnError = false; axios.post('/api/tokens/verify', { - type: 'client', token: token }) .then(function (response) { @@ -101,7 +100,7 @@ upload.prepareDropzone = function(){ maxFiles: 1000, autoProcessQueue: true, headers: { - 'auth': upload.token + 'token': upload.token }, init: function() { this.on('addedfile', function(file) { |