AuthenticationController.js 723 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 () {

          //  alert('called controller');
            $scope.IsAuthenticated = AuthenticationService.authenticateUser('superadmin', 'education');
            if ($scope.IsAuthenticated) {
                $window.location.href = "/AIA/index.html";
            }
            else {

            }
        }

    }]
);