ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sneet...@apache.org
Subject git commit: ARGUS-66:Set autocomplete off for fields that contains sensitive data
Date Fri, 19 Sep 2014 04:36:57 GMT
Repository: incubator-argus
Updated Branches:
  refs/heads/master a0a18007f -> 4f5fa69fe


ARGUS-66:Set autocomplete off for fields that contains sensitive data

Signed-off-by: sneethiraj <sneethir@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/incubator-argus/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-argus/commit/4f5fa69f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-argus/tree/4f5fa69f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-argus/diff/4f5fa69f

Branch: refs/heads/master
Commit: 4f5fa69fe94549faccd5c33bc0c0651f51b07a63
Parents: a0a1800
Author: vperiasamy <vperiasamy@hortonworks.com>
Authored: Wed Sep 17 23:47:12 2014 -0400
Committer: sneethiraj <sneethir@apache.org>
Committed: Fri Sep 19 00:36:26 2014 -0400

----------------------------------------------------------------------
 security-admin/src/main/webapp/login.jsp                       | 2 +-
 security-admin/src/main/webapp/scripts/models/VXPortalUser.js  | 6 +++---
 security-admin/src/main/webapp/scripts/views/users/UserForm.js | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/4f5fa69f/security-admin/src/main/webapp/login.jsp
----------------------------------------------------------------------
diff --git a/security-admin/src/main/webapp/login.jsp b/security-admin/src/main/webapp/login.jsp
index e31147b..38591b0 100644
--- a/security-admin/src/main/webapp/login.jsp
+++ b/security-admin/src/main/webapp/login.jsp
@@ -52,7 +52,7 @@
 						<label><i class="icon-user"></i> Username:</label>
 						<input type="text" name="username" id="username" tabindex="1" autofocus>
 						<label><i class="icon-lock"></i> Password:</label>	
-						<input type="password" name="password" id="password" tabindex="2">
+						<input type="password" name="password" id="password" tabindex="2" autocomplete="off">
 					</div>
 					<span id="errorBox" class="help-inline" style="color:white;display:none;">The
username or password you entered is incorrect..
 						<i class="icon-warning-sign" style="color:#ae2817;"></i>

http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/4f5fa69f/security-admin/src/main/webapp/scripts/models/VXPortalUser.js
----------------------------------------------------------------------
diff --git a/security-admin/src/main/webapp/scripts/models/VXPortalUser.js b/security-admin/src/main/webapp/scripts/models/VXPortalUser.js
index a5fdc5a..66fd364 100644
--- a/security-admin/src/main/webapp/scripts/models/VXPortalUser.js
+++ b/security-admin/src/main/webapp/scripts/models/VXPortalUser.js
@@ -72,7 +72,7 @@ define(function(require){
 					title		: localization.tt("lbl.oldPassword")+' *',
 				//	validators  : ['required'],
 					fieldAttrs : {style : 'display:none;'},
-					editorAttrs : { 'placeholder' : localization.tt("lbl.oldPassword"),'onpaste':'return
false;','oncopy':'return false;'}
+					editorAttrs : { 'placeholder' : localization.tt("lbl.oldPassword"),'onpaste':'return
false;','oncopy':'return false;','autocomplete':'off'}
 					
 				},
 				newPassword : {
@@ -80,7 +80,7 @@ define(function(require){
 					title		: localization.tt("lbl.newPassword")+' *',
 				//	validators  : ['required'],
 					fieldAttrs : {style : 'display:none;'},
-					editorAttrs : { 'placeholder' : localization.tt("lbl.newPassword"),'onpaste':'return
false;','oncopy':'return false;'}
+					editorAttrs : { 'placeholder' : localization.tt("lbl.newPassword"),'onpaste':'return
false;','oncopy':'return false;','autocomplete':'off'}
 					
 				},
 				reEnterPassword : {
@@ -88,7 +88,7 @@ define(function(require){
 					title		: localization.tt("lbl.reEnterPassword")+' *',
 				//	validators  : ['required'],
 					fieldAttrs : {style : 'display:none;'},
-					editorAttrs : { 'placeholder' : localization.tt("lbl.reEnterPassword"),'onpaste':'return
false;','oncopy':'return false;'}
+					editorAttrs : { 'placeholder' : localization.tt("lbl.reEnterPassword"),'onpaste':'return
false;','oncopy':'return false;','autocomplete':'off'}
 					
 				},
 				userRoleList : {

http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/4f5fa69f/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 cfaedd6..7967776 100644
--- a/security-admin/src/main/webapp/scripts/views/users/UserForm.js
+++ b/security-admin/src/main/webapp/scripts/views/users/UserForm.js
@@ -72,14 +72,14 @@ define(function(require){
 					title		: localization.tt("lbl.password") +' *',
 					validators  : ['required', {type: 'match', field: 'passwordConfirm', message: 'Passwords
must match!'},
 					               {type:'regexp',regexp:/^.*(?=.{8,256})(?=.*\d)(?=.*[a-zA-Z]).*$/,message
:localization.tt('validationMessages.passwordError')}],
-					editorAttrs  : {'onpaste':'return false;','oncopy':'return false;'}               
+					editorAttrs  : {'onpaste':'return false;','oncopy':'return false;','autocomplete':'off'}
              
 				},
 				passwordConfirm : {
 					type		: 'Password',
 					title		: localization.tt("lbl.passwordConfirm") +' *',
 					validators  : ['required',
 					               {type:'regexp',regexp:/^.*(?=.{8,256})(?=.*\d)(?=.*[a-zA-Z]).*$/,message
:localization.tt('validationMessages.passwordError')}],
-					editorAttrs  : {'onpaste':'return false;','oncopy':'return false;'}
+					editorAttrs  : {'onpaste':'return false;','oncopy':'return false;','autocomplete':'off'}
 				},
 				firstName : { 
 					type		: 'Text',


Mime
View raw message