Skip to content
This repository has been archived by the owner on Oct 8, 2019. It is now read-only.

Commit

Permalink
fix(LostGuid): use .rootURL
Browse files Browse the repository at this point in the history
  • Loading branch information
Sjors committed Dec 29, 2015
1 parent 709fa6d commit 35f3880
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions assets/js/controllers/lostGuid.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ angular
.module('walletApp')
.controller('LostGuidCtrl', LostGuidCtrl);

function LostGuidCtrl($scope, $http, $translate, Wallet, Alerts) {
function LostGuidCtrl($scope, $rootScope, $http, $translate, Wallet, Alerts) {
$scope.currentStep = 1;
$scope.fields = {
email: '',
Expand All @@ -11,7 +11,7 @@ function LostGuidCtrl($scope, $http, $translate, Wallet, Alerts) {

$scope.refreshCaptcha = () => {
let time = new Date().getTime();
$scope.captchaSrc = `https://blockchain.info/kaptcha.jpg?timestamp=${time}`;
$scope.captchaSrc = $rootScope.rootURL + `kaptcha.jpg?timestamp=${time}`;
$scope.fields.captcha = '';
};

Expand All @@ -36,7 +36,7 @@ function LostGuidCtrl($scope, $http, $translate, Wallet, Alerts) {
}
};
let httpOptions = {
url : 'https://blockchain.info/wallet/recover-wallet',
url : $rootScope.rootURL + 'wallet/recover-wallet',
method : 'GET',
params : {
param1 : $scope.fields.email,
Expand All @@ -50,7 +50,7 @@ function LostGuidCtrl($scope, $http, $translate, Wallet, Alerts) {

// Set SID cookie by requesting headers
$http({
url: 'https://blockchain.info/wallet/login',
url: $rootScope.rootURL + 'wallet/login',
method: 'HEAD',
withCredentials: true
}).then($scope.refreshCaptcha);
Expand Down

0 comments on commit 35f3880

Please sign in to comment.