Last change
on this file since 14648 was
12563,
checked in by ascheibe, 9 years ago
|
#2394 merged r12428, r12429, r12430, r12435, r12442, r12443, r12445, r12514, r12517, r12519, r12520, r12521, r12523, r12532, r12542, r12546, r12552, r12553, r12556, r12557, r12559, r12561, r12146, r12457 into stable
|
File size:
725 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 = "Invalid username or password. Please try again.";
|
---|
12 | }
|
---|
13 | });
|
---|
14 | };
|
---|
15 | }]
|
---|
16 | );
|
---|
17 | })(); |
---|
Note: See
TracBrowser
for help on using the repository browser.