Closed dwfreed closed 3 months ago
I believe that we need to test that the new [
-free username is not empty now. Before the change I get "invalid username" trying this. After the change I seem to be able to get an empty username
Fixed by moving the valid_username
test to after the sanitization. It'll look like they have an empty username in the snote, but that's no worse than it was before.
This ensures [ won't appear in the various rejection snotes, and invalid username characters only appear in the snote announcing their rejection.
Supersedes #433 and #381 Fixes #334