miguelgrinberg / microblog-api

A modern (as of 2024) Flask API back end.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No check for dupe email on user signup

lewis-morris opened this issue · comments

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.

Thanks, this should now be fixed.

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

Of course, I've just compared the commits.