Andrei0872 / decentdebates

A place where all sorts of topics are debated in a respectful and constructive manner.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use stored procedure for user register

Andrei0872 opened this issue · comments

There should be a single stored procedure that:

  • checks whether the current user already exists(e.g. based on username or email)
  • if the user exists, throw an error
  • if the user does not exist, create the user