O'Reilly logo
  • Tern Tester thinks this is interesting:

We ask for the user by email and username and then check for errors; if we’ve returned an existing user we throw an appropriate validation error