Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Services.WebApp/3.3/WebApp/plugins/login/loginCtrl.js @ 12428

Last change on this file since 12428 was 12428, checked in by ascheibe, 9 years ago

#2394 added web app and status page to trunk

File size: 694 bytes
Line 
1(function () {
2    var module = appLoginPlugin.getAngularModule();
3    module.controller('app.login.ctrl',
4        ['$scope', '$window', 'app.authentication.service', function ($scope, $window, authService) {
5            $scope.login = function () {
6                authService.login($scope.user, function (data) {
7                    if (!isDefined(data["Username"]) && !isDefined(data["Password"])) {
8                        $window.location.hash = "";
9                        $window.location.reload();
10                    } else {
11                        $scope.result = "error logging in";
12                    }
13                });
14            };
15        }]
16    );
17})();
Note: See TracBrowser for help on using the repository browser.