Add support for filtering github login by org

This commit is contained in:
Joseph Schorr 2015-03-03 19:58:42 -05:00
parent 9e61668c34
commit 4ca5d9b04b
7 changed files with 86 additions and 5 deletions

View file

@ -124,7 +124,7 @@ function SetupCtrl($scope, $timeout, ApiService, Features, UserService, Containe
$scope.showSuperuserPanel = function() {
$('#setupModal').modal('hide');
var prefix = $scope.hasSSL ? 'https' : 'http';
var hostname = $scope.hostname;
var hostname = $scope.hostname || document.location.hostname;
window.location = prefix + '://' + hostname + '/superuser';
};