miguelgrinberg / microblog-api

A modern (as of 2024) Flask API back end.
MIT License
367 stars 99 forks source link

No check for dupe email on user signup #9

Closed lewis-morris closed 2 years ago

lewis-morris commented 2 years ago

I'm struggling with this part, I will work out a way. I have tired to make a custom validator for marshmallow but still no luck.

But the server replies with this

body = Object {code: 400, description: "UNIQUE constraint failed: users.email", message: "Database integrity error"}

Instead of the correctly formatted errors object.

miguelgrinberg commented 2 years ago

Thanks, this should now be fixed.

lewis-morris commented 2 years ago

Can you tell me what you did, where so I can learn how to do this myself.

The book is great by the way !! Love it

lewis-morris commented 2 years ago

Of course, I've just compared the commits.