EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
fix generate password special characters null
Yuri Kuznetsov443af201edac
diff --git a/client/src/views/user/fields/generate-password.js b/client/src/views/user/fields/generate-password.jsindex 9e72638c9e..b6b88b3f91 100644--- a/client/src/views/user/fields/generate-password.js+++ b/client/src/views/user/fields/generate-password.js@@ -63,26 +63,26 @@ class UserGeneratePasswordFieldView extends BaseFieldView {this.strengthParams = this.options.strengthParams || {};- this.passwordStrengthLength = this.strengthParams.passwordStrengthLength ||- this.getConfig().get('passwordStrengthLength');+ this.passwordStrengthLength = this.strengthParams.passwordStrengthLength ??+ this.getConfig().get('passwordStrengthLength') ?? null;- this.passwordStrengthLetterCount = this.strengthParams.passwordStrengthLetterCount ||- this.getConfig().get('passwordStrengthLetterCount');+ this.passwordStrengthLetterCount = this.strengthParams.passwordStrengthLetterCount ??+ this.getConfig().get('passwordStrengthLetterCount') ?? null;- this.passwordStrengthNumberCount = this.strengthParams.passwordStrengthNumberCount ||- this.getConfig().get('passwordStrengthNumberCount');+ this.passwordStrengthNumberCount = this.strengthParams.passwordStrengthNumberCount ??+ this.getConfig().get('passwordStrengthNumberCount') ?? null;- this.passwordStrengthSpecialCharacterCount = this.strengthParams.passwordStrengthSpecialCharacterCount ||- this.getConfig().get('passwordStrengthSpecialCharacterCount');+ this.passwordStrengthSpecialCharacterCount = this.strengthParams.passwordStrengthSpecialCharacterCount ??+ this.getConfig().get('passwordStrengthSpecialCharacterCount') ?? null;- this.passwordGenerateLength = this.strengthParams.passwordGenerateLength ||- this.getConfig().get('passwordGenerateLength');+ this.passwordGenerateLength = this.strengthParams.passwordGenerateLength ??+ this.getConfig().get('passwordGenerateLength') ?? null;- this.passwordGenerateLetterCount = this.strengthParams.passwordGenerateLetterCount ||- this.getConfig().get('passwordGenerateLetterCount');+ this.passwordGenerateLetterCount = this.strengthParams.passwordGenerateLetterCount ??+ this.getConfig().get('passwordGenerateLetterCount') ?? null;- this.passwordGenerateNumberCount = this.strengthParams.passwordGenerateNumberCount ||- this.getConfig().get('passwordGenerateNumberCount');+ this.passwordGenerateNumberCount = this.strengthParams.passwordGenerateNumberCount ??+ this.getConfig().get('passwordGenerateNumberCount') ?? null;}fetch() {