diff options
Diffstat (limited to 'app/login')
-rw-r--r-- | app/login/controllers/login-controller.html | 2 | ||||
-rw-r--r-- | app/login/controllers/login-controller.js | 9 |
2 files changed, 4 insertions, 7 deletions
diff --git a/app/login/controllers/login-controller.html b/app/login/controllers/login-controller.html index a0da982..a634302 100644 --- a/app/login/controllers/login-controller.html +++ b/app/login/controllers/login-controller.html @@ -33,4 +33,4 @@ </form> </div> </div> -</div> +</div>
\ No newline at end of file diff --git a/app/login/controllers/login-controller.js b/app/login/controllers/login-controller.js index f4ca375..212abcc 100644 --- a/app/login/controllers/login-controller.js +++ b/app/login/controllers/login-controller.js @@ -35,7 +35,6 @@ window.angular && (function (angular) { }; $scope.login = function(username, password){ $scope.error = false; - $scope.server_unreachable = false; if(!username || username == "" || !password || password == ""){ @@ -46,11 +45,9 @@ window.angular && (function (angular) { $scope.$emit('user-logged-in',{}); $window.location.hash = '#/overview/system'; }else{ - if(unreachable){ - $scope.server_unreachable = true; - }else{ - $scope.error = true; - } + if(!unreachable){ + $scope.error = true; + } }; }); } |