Skip to content

Commit

Permalink
if es ui is executed from file, server is defaulted to http://127.0.0…
Browse files Browse the repository at this point in the history
  • Loading branch information
Gutek committed Oct 5, 2014
1 parent b04c05a commit e2c41dd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/js/modules/security/controllers/SignInCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ define(['./_module'], function (app) {
password: '',
server: $location.host() + ':' + $location.port()
};

if(!$location.host()) {
$scope.log.server = 'http://127.0.0.1:2113';
}

$scope.signIn = function () {
if ($scope.login.$invalid) {
msg.warn('Please fix all validation errors');
Expand Down

0 comments on commit e2c41dd

Please sign in to comment.