Skip to content

Commit

Permalink
another work around for openshift login woes
Browse files Browse the repository at this point in the history
  • Loading branch information
jstrachan committed Sep 4, 2013
1 parent 2155a68 commit 0948beb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions hawtio-web/src/main/webapp/app/core/js/corePlugin.ts
Expand Up @@ -158,6 +158,15 @@ angular.module('hawtioCore', ['bootstrap', 'ngResource', 'ui', 'ui.bootstrap.dia
username = credentials[0];
password = credentials[1];

// TODO we should try avoid both permutations of username / userName :)

} else if (angular.isDefined(userDetails) &&
angular.isDefined(userDetails.username) &&
angular.isDefined(userDetails.password)) {

username = userDetails.username;
password = userDetails.password;

} else if (angular.isDefined(userDetails) &&
angular.isDefined(userDetails.userName) &&
angular.isDefined(userDetails.password)) {
Expand Down

0 comments on commit 0948beb

Please sign in to comment.