Repository: incubator-ranger Updated Branches: refs/heads/ranger-0.5 0c9418cf8 -> 56d1a0335
RANGER-833 : Add support for usernames containing a plus + symbol Project: http://git-wip-us.apache.org/repos/asf/incubator-ranger/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ranger/commit/56d1a033 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/56d1a033 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/56d1a033 Branch: refs/heads/ranger-0.5 Commit: 56d1a03357dcc77ca94f2c6895ef06a6e5c7601b Parents: 0c9418c Author: Gautam Borad <[email protected]> Authored: Thu Jan 28 09:13:58 2016 +0530 Committer: Gautam Borad <[email protected]> Committed: Tue Feb 2 12:28:01 2016 +0530 ---------------------------------------------------------------------- security-admin/src/main/webapp/scripts/views/users/UserForm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/56d1a033/security-admin/src/main/webapp/scripts/views/users/UserForm.js ---------------------------------------------------------------------- diff --git a/security-admin/src/main/webapp/scripts/views/users/UserForm.js b/security-admin/src/main/webapp/scripts/views/users/UserForm.js index 52a278d..04f7cc6 100644 --- a/security-admin/src/main/webapp/scripts/views/users/UserForm.js +++ b/security-admin/src/main/webapp/scripts/views/users/UserForm.js @@ -63,7 +63,7 @@ define(function(require){ name : { type : 'Text', title : localization.tt("lbl.userName") +' *', - validators : ['required',{type:'regexp',regexp:/^[a-z0-9][a-z0-9,._'-]+$/i,message :"Name should start with alpha/numeric letters and can have special characters ,._'-"}], + validators : ['required',{type:'regexp',regexp:/^[a-z0-9][a-z0-9,._'-+]+$/i,message :"Name should start with alpha/numeric letters and can have special characters ,.+_'-"}], editorAttrs :{'maxlength': 32} }, password : {
