AuthenticationController.js 802 Bytes
/// <reference path="../../index.html" />
/// <reference path="../../index.html" />
'use strict';

AIA.controller("AuthenticationController", ["$scope", "$log", "$location", '$window', "$timeout", "AuthenticationService",
    function ($scope, $log, $location, $window, $timeout, AuthenticationService) {
        $scope.IsAuthenticated = false;

        $scope.login = function () {


                 var result = AuthenticationService.authenticateUser1("Authentication", "isUserAuthenticated", 'superadmin','education').success(function (data) {
                var data = $.parseJSON(JSON.parse(data));
                $scope.IsAuthenticated = data;
            });
        }
        alert('$scope.IsAuthenticated= ' + $scope.IsAuthenticated);
    }
    ]);