Skip to content

Commit

Permalink
default to the current logged in user/pwd before the stored fabric us…
Browse files Browse the repository at this point in the history
…er/pwd
  • Loading branch information
jstrachan committed Nov 29, 2013
1 parent e1865a9 commit f130527
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hawtio-web/src/main/webapp/app/fabric/js/fabricHelpers.ts
Expand Up @@ -226,8 +226,8 @@ module Fabric {

$scope.doConnect = (container, view) => {
// TODO at least obfusicate this
$scope.connect.userName = localStorage['fabric.userName'];
$scope.connect.password = localStorage['fabric.password'];
$scope.connect.userName = Core.username || localStorage['fabric.userName'];
$scope.connect.password = Core.password || localStorage['fabric.password'];
$scope.connect.container = container;
$scope.connect.view = view || "/logs";

Expand Down

0 comments on commit f130527

Please sign in to comment.