Wizard: Show "Strong" label only for Azure when password meets criteria

Currently, we only want to display the "Strong" label when the password meets the required strength conditions and only if it is Azure target.
This change ensures that the label remains hidden for non-Azure cases.

Let’s just disable it for now until we can decide on further adjustments.
This commit is contained in:
Michal Gold 2025-03-21 15:29:29 +02:00 committed by Klara Simickova
parent 3740c53375
commit 399126909c

View file

@ -518,11 +518,7 @@ const getStrength = (
rulesCount: number,
isAzure: boolean
): PasswordValidationResult['strength'] => {
const isValidStrength = isAzure
? strCount >= 6 && rulesCount >= 3
: strCount >= 6;
return isValidStrength
return isAzure && strCount >= 6 && rulesCount >= 3
? { variant: 'success', icon: <CheckCircleIcon />, text: 'Strong' }
: { variant: 'default', icon: null, text: '' };
};