Last change
on this file since 15405 was
12556,
checked in by dglaser, 10 years ago
|
#2394:
HeuristicLab.Services.WebApp-3.3:
- changed login error message
- updated about page
|
File size:
725 bytes
|
Rev | Line | |
---|
[12428] | 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 {
|
---|
[12556] | 11 | $scope.result = "Invalid username or password. Please try again.";
|
---|
[12428] | 12 | }
|
---|
| 13 | });
|
---|
| 14 | };
|
---|
| 15 | }]
|
---|
| 16 | );
|
---|
| 17 | })(); |
---|
Note: See
TracBrowser
for help on using the repository browser.