Fix export db link and access token parameter

Refs #5310
- Access token is now stored at session.secure.access_token.
This commit is contained in:
Jason Williams 2015-05-24 09:37:53 -05:00
parent 7190e1d2a3
commit 3e6a2fb89c

View File

@ -65,7 +65,7 @@ var LabsController = Ember.Controller.extend(Ember.Evented, {
exportData: function () {
var iframe = $('#iframeDownload'),
downloadURL = this.get('ghostPaths.url').api('db') +
'?access_token=' + this.get('session.access_token');
'?access_token=' + this.get('session.secure.access_token');
if (iframe.length === 0) {
iframe = $('<iframe>', {id: 'iframeDownload'}).hide().appendTo('body');