mirror of
https://github.com/documize/community.git
synced 2025-07-25 08:09:43 +02:00
reference session token
This commit is contained in:
parent
1b47829251
commit
a5b712a9c6
2 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@ export default Ember.Component.extend(NotifierMixin, TooltipMixin, {
|
|||
|
||||
let dzone = new Dropzone("#attachment-button > i", {
|
||||
headers: {
|
||||
'Authorization': 'Bearer ' + self.get('localStorage').getSessionItem('token')
|
||||
'Authorization': 'Bearer ' + self.get('session.session.content.authenticated.token')
|
||||
},
|
||||
url: uploadUrl,
|
||||
method: "post",
|
||||
|
|
|
@ -80,7 +80,7 @@ export default Ember.Component.extend(NotifierMixin, {
|
|||
|
||||
let dzone = new Dropzone("#upload-documents", {
|
||||
headers: {
|
||||
'Authorization': 'Bearer ' + self.get('localStorage').getSessionItem('token')
|
||||
'Authorization': 'Bearer ' + self.get('session.session.content.authenticated.token')
|
||||
},
|
||||
url: importUrl,
|
||||
method: "post",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue