Open TravisWhitehead opened 4 years ago
Since FIELD_SEPERATOR is a space, passwords containing spaces are erroneously flagged as invalid. Instead this code should split on only the first space and consider everything after that a password.
FIELD_SEPERATOR
https://github.com/yeriomin/token-dispenser/blob/6b1428e9a36884aa6d46440b145efa2a12de8b6a/src/main/java/com/github/yeriomin/tokendispenser/PasswordsDbPlaintext.java#L56-L60
Since
FIELD_SEPERATOR
is a space, passwords containing spaces are erroneously flagged as invalid. Instead this code should split on only the first space and consider everything after that a password.https://github.com/yeriomin/token-dispenser/blob/6b1428e9a36884aa6d46440b145efa2a12de8b6a/src/main/java/com/github/yeriomin/tokendispenser/PasswordsDbPlaintext.java#L56-L60