[DE] Set max length of password for document protection

This commit is contained in:
Julia Radzhabova 2022-10-13 18:56:03 +03:00
parent b17377a916
commit 5c0b841223
3 changed files with 4 additions and 2 deletions

View file

@ -207,6 +207,7 @@ define([
type: 'password',
showCls: (this.options.iconType==='svg' ? 'svg-icon' : 'toolbar__icon') + ' btn-sheet-view',
hideCls: (this.options.iconType==='svg' ? 'svg-icon' : 'toolbar__icon') + ' hide-password',
maxLength: this.options.maxPasswordLength,
validateOnBlur: false,
showPwdOnClick: true,
validation : function(value) {

View file

@ -147,6 +147,7 @@ define([
type: Common.Utils.importTextType.DRM,
txtOpenFile: me.view.txtWBUnlockDescription,
validatePwd: false,
maxPasswordLength: 15,
handler: function (result, value) {
btn = result;
if (result == 'ok') {

View file

@ -99,7 +99,7 @@ define([
type: 'password',
allowBlank : true,
style : 'width: 100%;',
maxLength: 255,
maxLength: 15,
validateOnBlur: false,
validation : function(value) {
return me.txtIncorrectPwd;
@ -111,7 +111,7 @@ define([
type: 'password',
allowBlank : true,
style : 'width: 100%;',
maxLength: 255,
maxLength: 15,
validateOnBlur: false,
repeatInput: this.repeatPwd,
showPwdOnClick: true