我正在尝试为我的解析webapp创建一个登录应用程序,以检查布尔值的列是否为真,然后显示正确的HTML内容,但如果布尔值为false,则它应该只显示错误警报 . 所以我的登录表单是这样的

<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<script src="http://www.parsecdn.com/js/parse-latest.js"></script>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<title>Testin</title>
<script>
 Parse.initialize("APPID", "JSKEY");
 angular.module('AuthApp', [])
.run(['$rootScope', function($scope) {
  $scope.scenario = 'Log in';
  $scope.currentUser = Parse.User.current();
  $scope.logIn = function(form) {
    Parse.User.logIn(form.username, form.password, {
      success: function(user) {
        $scope.currentUser = user;
        $scope.$apply();
      },
      error: function(user, error) {
        alert("Unable to log in: " + error.code + " " + error.message);
      }
    });
  };  
  $scope.logOut = function(form) {
    Parse.User.logOut();
    $scope.currentUser = null;
  };
}]);
</script>
</head>
<body ng-app="AuthApp">
 <div ng-hide="currentUser">
    <form ng-show="scenario == 'Sign up'">
      <a href="#" ng-click='scenario="Log in"'>Log in</a>
    </form>
    <form ng-show="scenario == 'Log in'">
      <h2>Log in</h2>
      Username: <input type="text" ng-model="user.username" />
Password: <input type="password" ng-model="user.password" />
<button ng-click="logIn(user)">Log in</button> </form> </div> <div ng-show="currentUser"> <p> You Are logged in as a chef</p> <input type="button" id="submitId" value="submit"> <button ng-click="logOut(user)">Log out</button> </div> </body> </html>

在类_Users中,我有一个名为_1865427的列 . 此列是布尔值,它是真或假 .
enter image description here
我的问题是,当我签入登录时,用户名和密码,有没有办法检查此列中的布尔值是真还是假?如果它真的进入成功函数,如果它的错误去了错误函数!

我认为它与检查已验证的电子邮件相同,因为该列也是一个布尔值 .