You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by ga...@apache.org on 2016/02/02 07:57:42 UTC
incubator-ranger git commit: RANGER-833 : Add support for usernames
containing a plus + symbol
Repository: incubator-ranger
Updated Branches:
refs/heads/master 018644b94 -> a6f4edd27
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/a6f4edd2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/a6f4edd2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/a6f4edd2
Branch: refs/heads/master
Commit: a6f4edd2714d4845ca1aa011492f0ba5d1f80c7e
Parents: 018644b
Author: Gautam Borad <ga...@apache.org>
Authored: Thu Jan 28 09:13:58 2016 +0530
Committer: Gautam Borad <ga...@apache.org>
Committed: Tue Feb 2 12:27:28 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/a6f4edd2/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 edd87c3..d99f079 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 : {