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
oremail
) - if the user exists, throw an error
- if the user does not exist, create the user