"...0d0cea2424ae97b27447dc64a7dbfae83c036c45b403392f0e8ba.png" did not exist on "fb223502ec0889444965f602f57b1f45f9e9845e"
better validation for password and username
This is a proposed change to fix https://gitlab.e.foundation/e/infra/backlog/-/issues/3408
I couldn't test it because the account creation flow doesn't seem to work on staging or dev
I've reproduced what was already there but I wondering if we could do a better check at least for username, as the check is done only on validateInput, which means a user could forge a post request with curl to force it. I guess it would be better to make the check in two places