X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=ecomp-portal-FE-os%2Fclient%2Fsrc%2Fdirectives%2Fsearch-users%2Fsearch-users.controller.js;fp=ecomp-portal-FE-os%2Fclient%2Fsrc%2Fdirectives%2Fsearch-users%2Fsearch-users.controller.js;h=fc7fd7c2a8a632971458bb1e69ba2989eeb9f28b;hb=15586620ec762ba42f2c6ec1b596ea6ea4425355;hp=c2067cc1567bb736a46049ff29f97607339fa07a;hpb=1e3b5bdbea15453fb078ee49fe7de41efef4326f;p=portal.git diff --git a/ecomp-portal-FE-os/client/src/directives/search-users/search-users.controller.js b/ecomp-portal-FE-os/client/src/directives/search-users/search-users.controller.js index c2067cc1..fc7fd7c2 100644 --- a/ecomp-portal-FE-os/client/src/directives/search-users/search-users.controller.js +++ b/ecomp-portal-FE-os/client/src/directives/search-users/search-users.controller.js @@ -78,6 +78,10 @@ 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.