You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by ve...@apache.org on 2015/03/23 15:35:48 UTC
incubator-ranger git commit: RANGER-318 : Allow username to accept
all numbers and other validations
Repository: incubator-ranger
Updated Branches:
refs/heads/master b780714ec -> cbfbf7f04
RANGER-318 : Allow username to accept all numbers and other validations
Signed-off-by: Velmurugan Periasamy <ve...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/incubator-ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ranger/commit/cbfbf7f0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/cbfbf7f0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/cbfbf7f0
Branch: refs/heads/master
Commit: cbfbf7f04d3644dd730af2a76707cdd7ef853c14
Parents: b780714
Author: Gautam Borad <gb...@gmail.com>
Authored: Thu Mar 19 14:12:30 2015 +0530
Committer: Velmurugan Periasamy <ve...@apache.org>
Committed: Mon Mar 23 10:35:36 2015 -0400
----------------------------------------------------------------------
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/cbfbf7f0/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 eca7834..ec40b2e 100644
--- a/security-admin/src/main/webapp/scripts/views/users/UserForm.js
+++ b/security-admin/src/main/webapp/scripts/views/users/UserForm.js
@@ -64,7 +64,7 @@ define(function(require){
type : 'Text',
title : localization.tt("lbl.userName") +' *',
//validators : ['required'],
- validators : ['required',{type:'regexp',regexp:/^[a-z][a-z0-9,._'-]+$/i,message :'Please enter valid name'}],
+ 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 : {