search user changes
[portal.git] / ecomp-portal-FE-os / client / src / directives / search-users / search-users.controller.js
index c2067cc..fc7fd7c 100644 (file)
                           var warningMsg = "Passwords do not match, please try again.";
                           confirmBoxService.showInformation(warningMsg).then(isConfirmed => {return;});
                           return;
+                  } else if(/[^a-zA-Z0-9\-\@\_]/.test(this.newUser.loginId)){
+                          var warningMsg = "Login ID should not contain special characters except '@', '-', and '_'.";
+                          confirmBoxService.showInformation(warningMsg).then(isConfirmed => {return;});
+                          return;
                   }
                   else {
                           // check password length complexity.