Commit e922524038513f2367eeebd784b29a09d1fa8d26

Authored by Amrita Vishnoi
1 parent 6c7473be

changed the location from where message picked

400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
@@ -109,11 +109,11 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic @@ -109,11 +109,11 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
109 function (result) { 109 function (result) {
110 if (result == LoginConstants.USER_NOT_FOUND) { 110 if (result == LoginConstants.USER_NOT_FOUND) {
111 $rootScope.isVisibleLogin = true; 111 $rootScope.isVisibleLogin = true;
112 - alert(LoginConstants.USER_NOT_FOUND); 112 + alert(LoginMessageConstants.USER_OR_PASSWORD_INCORRECT);
113 113
114 } 114 }
115 else if (result == LoginConstants.ERROR_IN_FECTHING_DETAILS) { 115 else if (result == LoginConstants.ERROR_IN_FECTHING_DETAILS) {
116 - alert(LoginConstants.ERROR_IN_FECTHING_DETAILS); 116 + alert(LoginMessageConstants.ERROR_IN_FECTHING_DETAILS);
117 $rootScope.isVisibleLogin = true; 117 $rootScope.isVisibleLogin = true;
118 } 118 }
119 else { 119 else {
@@ -129,7 +129,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic @@ -129,7 +129,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
129 }, 129 },
130 function (error) { 130 function (error) {
131 console.log(' Error in authentication = ' + error.statusText); 131 console.log(' Error in authentication = ' + error.statusText);
132 - alert(LoginConstants.ERROR_IN_FECTHING_DETAILS); 132 + alert(LoginMessageConstants.ERROR_IN_FECTHING_DETAILS);
133 $rootScope.isVisibleLogin = true; 133 $rootScope.isVisibleLogin = true;
134 }); 134 });
135 } 135 }
@@ -187,7 +187,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic @@ -187,7 +187,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
187 AuthenticationService.SendMailToUser(userInfo) 187 AuthenticationService.SendMailToUser(userInfo)
188 .then(function (result) { 188 .then(function (result) {
189 if (result == LoginConstants.USER_NOT_FOUND) { 189 if (result == LoginConstants.USER_NOT_FOUND) {
190 - alert(LoginConstants.USER_NOT_FOUND); 190 + alert(LoginMessageConstants.USER_OR_PASSWORD_INCORRECT);
191 } 191 }
192 else if (result == LoginConstants.ERROR_IN_FECTHING_DETAILS) { 192 else if (result == LoginConstants.ERROR_IN_FECTHING_DETAILS) {
193 alert(LoginMessageConstants.ERROR_IN_FECTHING_DETAILS); 193 alert(LoginMessageConstants.ERROR_IN_FECTHING_DETAILS);