Merge pull request #2143 from ONLYOFFICE/fix/bugfix

[DE] Check password length (fix for Safari - paste saved passwords)
This commit is contained in:
Julia Radzhabova 2022-12-16 16:21:50 +03:00 committed by GitHub
commit 3f2b2ea3aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View file

@ -114,7 +114,10 @@ define([
maxLength: 15, maxLength: 15,
validateOnBlur: false, validateOnBlur: false,
repeatInput: this.repeatPwd, repeatInput: this.repeatPwd,
showPwdOnClick: true showPwdOnClick: true,
validation : function(value) {
return (value.length>15) ? me.txtLimit : true;
}
}); });
this.rbView = new Common.UI.RadioBox({ this.rbView = new Common.UI.RadioBox({
@ -230,7 +233,8 @@ define([
textView: 'No changes (Read only)', textView: 'No changes (Read only)',
textForms: 'Filling forms', textForms: 'Filling forms',
textReview: 'Tracked changes', textReview: 'Tracked changes',
textComments: 'Comments' textComments: 'Comments',
txtLimit: 'Password is limited to 15 characters'
}, DE.Views.ProtectDialog || {})); }, DE.Views.ProtectDialog || {}));
}); });

View file

@ -2644,6 +2644,7 @@
"DE.Views.ProtectDialog.txtRepeat": "Repeat password", "DE.Views.ProtectDialog.txtRepeat": "Repeat password",
"DE.Views.ProtectDialog.txtTitle": "Protect", "DE.Views.ProtectDialog.txtTitle": "Protect",
"DE.Views.ProtectDialog.txtWarning": "Warning: If you lose or forget the password, it cannot be recovered. Please keep it in a safe place.", "DE.Views.ProtectDialog.txtWarning": "Warning: If you lose or forget the password, it cannot be recovered. Please keep it in a safe place.",
"DE.Views.ProtectDialog.txtLimit": "Password is limited to 15 characters",
"DE.Views.RightMenu.txtChartSettings": "Chart settings", "DE.Views.RightMenu.txtChartSettings": "Chart settings",
"DE.Views.RightMenu.txtFormSettings": "Form Settings", "DE.Views.RightMenu.txtFormSettings": "Form Settings",
"DE.Views.RightMenu.txtHeaderFooterSettings": "Header and footer settings", "DE.Views.RightMenu.txtHeaderFooterSettings": "Header and footer settings",