Skip to content

Commit

Permalink
added tokenCookie property
Browse files Browse the repository at this point in the history
  • Loading branch information
JaySunSyn committed Jul 24, 2016
1 parent af98353 commit 22b62aa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ee-api-behavior",
"version": "1.0.0",
"version": "1.0.2",
"authors": [
"Jalal Fathi <[email protected]>"
],
Expand Down
6 changes: 6 additions & 0 deletions ee-api-behavior.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@
type: String,
value: 'sessionelf'
},

tokenCookie: {
type: String,
value: ''
},
},

_dataChanged: function() {
Expand Down Expand Up @@ -138,6 +143,7 @@
this.loginRedirect();
return false;
}
this.tokenCookie = value;
var header = '{"Authorization": "Token' + value + '"}';
var authHeader = {
'Authorization': 'Token ' + value,
Expand Down

0 comments on commit 22b62aa

Please sign in to comment.