From e922524038513f2367eeebd784b29a09d1fa8d26 Mon Sep 17 00:00:00 2001 From: amrita.vishnoi Date: Thu, 16 Feb 2017 17:42:31 +0530 Subject: [PATCH] changed the location from where message picked --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); -- libgit2 0.21.4