Code Review
/
portal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
search user changes
[portal.git]
/
ecomp-portal-FE-os
/
client
/
src
/
directives
/
search-users
/
search-users.controller.js
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
c2067cc
..
fc7fd7c
100644
(file)
--- 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;
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.
}
else {
// check password length complexity.