Flomp / wanderer

wanderer is a self-hosted trail database. Save your adventures!
GNU Affero General Public License v3.0
804 stars 20 forks source link

Validation errors are swallowed by "Error creating user" #38

Closed jwjenkin closed 3 months ago

jwjenkin commented 3 months ago

Tried creating a user on my phone and kept getting "issue creating user". Hopped on my desktop and had to dig into the response to see the issue was that my username was too short.

Should have those validation errors propogate up. I can give it a go later if I have a chance to dig into the code.

Flomp commented 3 months ago

I wasn't aware of that restraint on the username length. It comes from PocketBase. I added a client side validation for the next patch.

jwjenkin commented 3 months ago

It's mainly due to me just using 2 characters, but thanks!

Flomp commented 3 months ago

Validation added in v0.3.0.