mirror of https://github.com/grafana/grafana.git
				
				
				
			fixed so validation of empty fields works again
This commit is contained in:
		
							parent
							
								
									050902a1e7
								
							
						
					
					
						commit
						1a2ab532d1
					
				| 
						 | 
				
			
			@ -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)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue