diff options
author | 2018-10-02 16:34:42 -0400 | |
---|---|---|
committer | 2018-10-03 12:33:04 -0400 | |
commit | 15586620ec762ba42f2c6ec1b596ea6ea4425355 (patch) | |
tree | 81df99954e54a0c941ded02b3a8b39396ff5c4ec /ecomp-portal-FE-os/client/src/directives/search-users/search-users.controller.js | |
parent | 1e3b5bdbea15453fb078ee49fe7de41efef4326f (diff) |
search user changes
Issue-ID: PORTAL-386
failed to create user with special char in login_id
Change-Id: I613daa21efed9f6f137bd817a1a8aa2f9669cee8
Signed-off-by: Kishore Reddy, Gujja (kg811t) <kishore.reddy.gujja@att.com>
Diffstat (limited to 'ecomp-portal-FE-os/client/src/directives/search-users/search-users.controller.js')
-rw-r--r-- | ecomp-portal-FE-os/client/src/directives/search-users/search-users.controller.js | 4 |
1 files changed, 4 insertions, 0 deletions
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. |