Last change
on this file since 12556 was
12556,
checked in by dglaser, 9 years ago
|
#2394:
HeuristicLab.Services.WebApp-3.3:
- changed login error message
- updated about page
|
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.