Skip to content

Commit 06dd8b3

Browse files
fix(ui): change validator order to check first for password emptyness
Signed-off-by: Marcello Rinaldo Martina <martina.marcello.rinaldo@outlook.com>
1 parent 63a992f commit 06dd8b3

File tree

1 file changed

+2
-2
lines changed
  • bundles/org.eclipse.kura.web2/src/main/java/org/eclipse/kura/web/client/ui/validator

1 file changed

+2
-2
lines changed

bundles/org.eclipse.kura.web2/src/main/java/org/eclipse/kura/web/client/ui/validator/GwtValidators.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ private GwtValidators() {
5151
public static List<Validator<String>> newPassword(final GwtPasswordStrenghtRequirements userOptions) {
5252

5353
final List<Validator<String>> defaultValidators = Arrays.asList(
54+
nonEmpty(MSGS.pwdEmpty()),
5455
stringLength(255, MSGS.pwdMaxLength()),
55-
noWhitespaceCharacters(MSGS.pwdWhitespaceCharacters()),
56-
nonEmpty(MSGS.pwdEmpty()));
56+
noWhitespaceCharacters(MSGS.pwdWhitespaceCharacters()));
5757

5858
return Stream
5959
.concat(PasswordStrengthValidators.fromConfig(userOptions, new PasswordStrengthValidators.Messages() {

0 commit comments

Comments
 (0)