AuthenticationController.js
737 Bytes
/// <reference path="../../index.html" />
/// <reference path="../../index.html" />
'use strict';
AIA.controller("AuthenticationController",["$scope", "$log", "$location", "$timeout", "AuthenticationService",
function ($scope, $log, $location, $timeout, AuthenticationService) {
$scope.IsAuthenticated = false;
$scope.login = function () {
alert('called controller');
$scope.IsAuthenticated = AuthenticationService.authenticateUser('superadmin', 'education');
if($scope.IsAuthenticated)
{
$location.path('index.html');
}
else
{
}
}
}]
);