Fix Bug 64324: Special characters are not allowed to be used in the password

This commit is contained in:
Viktor Fomin 2023-09-26 17:53:22 +03:00
parent 570ff7e1b1
commit 782f064149
4 changed files with 8 additions and 2 deletions

View File

@ -204,6 +204,7 @@ const ActivateUserForm = (props) => {
className="confirm-input"
simpleView={false}
passwordSettings={settings}
generatorSpecial={settings.specSymbolsRegexStr}
id="password"
inputName="password"
placeholder={t("Common:Password")}

View File

@ -119,6 +119,7 @@ const ChangePasswordForm = (props) => {
<PasswordInput
simpleView={false}
passwordSettings={settings}
generatorSpecial={settings.specSymbolsRegexStr}
id="password"
inputName="password"
placeholder={t("Common:Password")}

View File

@ -363,7 +363,10 @@ const CreateUserForm = (props) => {
<SocialButton
iconName={SsoReactSvgUrl}
className="socialButton"
label={capabilities?.ssoLabel || getProviderTranslation("sso", t, false, true)}
label={
capabilities?.ssoLabel ||
getProviderTranslation("sso", t, false, true)
}
onClick={() => (window.location.href = capabilities?.ssoUrl)}
/>
</div>
@ -605,6 +608,7 @@ const CreateUserForm = (props) => {
hideNewPasswordButton
showCopyLink={false}
passwordSettings={settings}
generatorSpecial={settings.specSymbolsRegexStr}
id="password"
inputName="password"
placeholder={t("Common:Password")}

View File

@ -59,7 +59,7 @@ class PasswordInput extends React.Component {
testStrength = (value) => {
const { generatorSpecial, passwordSettings } = this.props;
const specSymbols = new RegExp("[" + generatorSpecial + "]");
const specSymbols = new RegExp(generatorSpecial);
let capital;
let digits;