mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 13:54:35 +03:00
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:
parent
7190e1d2a3
commit
3e6a2fb89c
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user