If I’ll send in request body login and email both, and my user identity is login, can I somehow reject this user registration request if current email is already exists?
(login and email can be swapped in this text)
If I’ll send in request body login and email both, and my user identity is login, can I somehow reject this user registration request if current email is already exists?
(login and email can be swapped in this text)
Hello Timur
In Users table schema you may set UQ (unique) constraint for any column you need. So when new user with email/login/name which already exists will be registered - registration request will be denied.
I’ve attached a screenshot describing the step sequence to achieve what you need.
Regards Anton