Browse Source

fixed so validation of empty fields works again

Patrick O'Carroll 7 years ago
parent
commit
1a2ab532d1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      public/app/core/controllers/login_ctrl.ts

+ 1 - 1
public/app/core/controllers/login_ctrl.ts

@@ -102,11 +102,11 @@ export class LoginCtrl {
 
     $scope.login = function() {
       delete $scope.loginError;
-      $scope.loggingIn = true;
 
       if (!$scope.loginForm.$valid) {
         return;
       }
+      $scope.loggingIn = true;
 
       backendSrv
         .post('/login', $scope.formModel)