westbaystars / exk_passwd

Unofficial port of XKPasswd to Elixir.
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

No separator characters should be possible #6

Closed westbaystars closed 14 hours ago

westbaystars commented 2 days ago

When disabling all separator characters, all except the last two are restored to being selected. I expect no separator between words.

westbaystars commented 1 day ago

Needed to set empty_values: [] in call to Ecto.Changeset.cast/4. Also, :separator_character may not be listed in validate_required. Doing so bypasses the cast exemption for empty_values and forces the default value to load.