ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From v..@apache.org
Subject incubator-ranger git commit: RANGER-318 : Allow username to accept all numbers and other validations
Date Mon, 23 Mar 2015 14:35:48 GMT
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 <vel@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 <gborad@gmail.com>
Authored: Thu Mar 19 14:12:30 2015 +0530
Committer: Velmurugan Periasamy <vel@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 : {


Mime
View raw message