Fix Bug 64324: Special characters are not allowed to be used in the password
This commit is contained in:
parent
570ff7e1b1
commit
782f064149
@ -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")}
|
||||
|
@ -119,6 +119,7 @@ const ChangePasswordForm = (props) => {
|
||||
<PasswordInput
|
||||
simpleView={false}
|
||||
passwordSettings={settings}
|
||||
generatorSpecial={settings.specSymbolsRegexStr}
|
||||
id="password"
|
||||
inputName="password"
|
||||
placeholder={t("Common:Password")}
|
||||
|
@ -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")}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user