diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js index cd6b850..011ffcb 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js @@ -109,11 +109,11 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic function (result) { if (result == LoginConstants.USER_NOT_FOUND) { $rootScope.isVisibleLogin = true; - alert(LoginConstants.USER_NOT_FOUND); + alert(LoginMessageConstants.USER_OR_PASSWORD_INCORRECT); } else if (result == LoginConstants.ERROR_IN_FECTHING_DETAILS) { - alert(LoginConstants.ERROR_IN_FECTHING_DETAILS); + alert(LoginMessageConstants.ERROR_IN_FECTHING_DETAILS); $rootScope.isVisibleLogin = true; } else { @@ -129,7 +129,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic }, function (error) { console.log(' Error in authentication = ' + error.statusText); - alert(LoginConstants.ERROR_IN_FECTHING_DETAILS); + alert(LoginMessageConstants.ERROR_IN_FECTHING_DETAILS); $rootScope.isVisibleLogin = true; }); } @@ -187,7 +187,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic AuthenticationService.SendMailToUser(userInfo) .then(function (result) { if (result == LoginConstants.USER_NOT_FOUND) { - alert(LoginConstants.USER_NOT_FOUND); + alert(LoginMessageConstants.USER_OR_PASSWORD_INCORRECT); } else if (result == LoginConstants.ERROR_IN_FECTHING_DETAILS) { alert(LoginMessageConstants.ERROR_IN_FECTHING_DETAILS);