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