Skip to content

Commit

Permalink
user password should not contain whitespace, changed default subscrip…
Browse files Browse the repository at this point in the history
…tion color for WS
  • Loading branch information
dmytro-landiak committed Mar 19, 2024
1 parent 02e199c commit dfbc4c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ public void validatePassword(String password) throws DataValidationException {
if (password.length() <= 5) {
throw new DataValidationException("Password should be longer than 5 characters!");
}
if (org.springframework.util.StringUtils.containsWhitespace(password)) {
throw new DataValidationException("Password should not contain whitespaces!");
}
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,5 +128,5 @@ public class BrokerConstants {

public static final String WEB_SOCKET_DEFAULT_SUBSCRIPTION_TOPIC_FILTER = "sensors/#";
public static final int WEB_SOCKET_DEFAULT_SUBSCRIPTION_QOS = 1;
public static final String WEB_SOCKET_DEFAULT_SUBSCRIPTION_COLOR = "#FF5733";
public static final String WEB_SOCKET_DEFAULT_SUBSCRIPTION_COLOR = "#34920C";
}

0 comments on commit dfbc4c6

Please sign in to comment.