Skip to content

Commit

Permalink
attempted fix for the authentication issues on openshift
Browse files Browse the repository at this point in the history
  • Loading branch information
jstrachan committed Sep 4, 2013
1 parent 188652b commit ffe1ecd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hawtio-web/src/main/webapp/app/core/js/helpers.ts
Expand Up @@ -893,8 +893,9 @@ module Core {
userDetails.password = options.password;
}

localStorage[connectUrl] = angular.toJson(userDetails);
// TODO we should replace this and just store the real, final connectUrl!

localStorage[connectUrl] = angular.toJson(userDetails);
if (connectUrl) {

if (options.useProxy) {
Expand All @@ -914,6 +915,7 @@ module Core {
}
}
console.log("going to server: " + connectUrl + " as user " + options.userName);
localStorage[connectUrl] = angular.toJson(userDetails);

var full = "?url=" + encodeURIComponent(connectUrl);

Expand All @@ -939,6 +941,7 @@ module Core {
}
}
console.log("going to server: " + connectUrl + " as user " + options.userName);
localStorage[connectUrl] = angular.toJson(userDetails);

var full = "?url=" + encodeURIComponent(connectUrl);

Expand Down

0 comments on commit ffe1ecd

Please sign in to comment.