Repository: incubator-ranger Updated Branches: refs/heads/master 9286cf28e -> 9ea73e418
RANGER-819: Removed onpaste event from password fields to allow password to be pasted in Project: http://git-wip-us.apache.org/repos/asf/incubator-ranger/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ranger/commit/9ea73e41 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/9ea73e41 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/9ea73e41 Branch: refs/heads/master Commit: 9ea73e418b9c813a97722ff1782dd38e07614647 Parents: 9286cf2 Author: Jim Halfpenny <[email protected]> Authored: Fri Feb 5 10:24:33 2016 +0100 Committer: Gautam Borad <[email protected]> Committed: Tue Feb 9 10:16:45 2016 +0530 ---------------------------------------------------------------------- security-admin/src/main/webapp/scripts/models/VXPortalUser.js | 6 +++--- security-admin/src/main/webapp/scripts/views/users/UserForm.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/9ea73e41/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 cc1ee82..f9b7055 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;','autocomplete':'off'} + editorAttrs : { 'placeholder' : localization.tt("lbl.oldPassword"),'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;','autocomplete':'off'} + editorAttrs : { 'placeholder' : localization.tt("lbl.newPassword"),'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;','autocomplete':'off'} + editorAttrs : { 'placeholder' : localization.tt("lbl.reEnterPassword"),'oncopy':'return false;','autocomplete':'off'} }, userRoleList : { http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/9ea73e41/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 d99f079..d15765b 100644 --- a/security-admin/src/main/webapp/scripts/views/users/UserForm.js +++ b/security-admin/src/main/webapp/scripts/views/users/UserForm.js @@ -71,14 +71,14 @@ define(function(require){ title : localization.tt("lbl.newPassword") +' *', 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;','autocomplete':'off'} + editorAttrs : {'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;','autocomplete':'off'} + editorAttrs : {'oncopy':'return false;','autocomplete':'off'} }, firstName : { type : 'Text',
