Prismatik / auth

A generically useful authentication and authorisation server based on a heirarchy-free inter-entity permission system
5 stars 1 forks source link

Ensure emails are really, really unique #24

Closed davidbanham closed 8 years ago

davidbanham commented 8 years ago

This solves a race condition where two simultaneous posts could result in non-unique emails entering the system.

Nicktho commented 8 years ago

Ah right, I had this in setup but wasn't waiting after creation.

davidbanham commented 8 years ago

I've left the middleware check in there since it'll catch most instances and generates a nicer error message.