File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
UserSettingsPage/SecurityPage Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ export const CreateUserForm: FC<
205
205
helperText :
206
206
( form . values . login_type !== "password" &&
207
207
"No password required for this login type" ) ||
208
- ( ! passwordIsValid && "password is not strong." ) ,
208
+ ( form . values . password !== "" && ! passwordIsValid && "password is not strong." ) ,
209
209
} ) }
210
210
autoComplete = "current-password"
211
211
fullWidth
Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ export const SetupPageView: FC<SetupPageViewProps> = ({
183
183
id = "password"
184
184
label = { Language . passwordLabel }
185
185
type = "password"
186
- helperText = { ! passwordIsValid ? "Password is not strong." : "" } // Provide feedback
186
+ helperText = { form . values . password !== "" && ! passwordIsValid ? "Password is not strong." : "" }
187
187
/>
188
188
< label
189
189
htmlFor = "trial"
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ export const SecurityForm: FC<SecurityFormProps> = ({
96
96
autoComplete = "password"
97
97
fullWidth
98
98
label = { Language . newPasswordLabel }
99
- helperText = { ! passwordIsValid ? "Password is not strong." : "" } // Provide feedback
99
+ helperText = { form . values . password !== "" && ! passwordIsValid ? "Password is not strong." : "" }
100
100
type = "password"
101
101
/>
102
102
< TextField
You can’t perform that action at this time.
0 commit comments