mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-29 13:25:13 +02:00
Fixed: Twitter oAuth callback URL (#1669)
This commit is contained in:

committed by
Leonardo Galli

parent
3eab8248e6
commit
5c5f06a92c
@@ -91,8 +91,9 @@ var view = Marionette.ItemView.extend({
|
|||||||
this.ui.indicator.show();
|
this.ui.indicator.show();
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
|
var callbackUrl = window.location.origin + window.NzbDrone.UrlBase + '/oauth.html';
|
||||||
|
|
||||||
var promise = this.model.requestAction('startOAuth', { callbackUrl: window.location.origin + '/oauth.html' })
|
var promise = this.model.requestAction('startOAuth', { callbackUrl: callbackUrl })
|
||||||
.then(function(response) {
|
.then(function(response) {
|
||||||
return self._showOAuthWindow(response.oauthUrl);
|
return self._showOAuthWindow(response.oauthUrl);
|
||||||
})
|
})
|
||||||
@@ -137,4 +138,4 @@ AsModelBoundView.call(view);
|
|||||||
AsValidatedView.call(view);
|
AsValidatedView.call(view);
|
||||||
AsEditModalView.call(view);
|
AsEditModalView.call(view);
|
||||||
|
|
||||||
module.exports = view;
|
module.exports = view;
|
||||||
|
Reference in New Issue
Block a user