Customize registration logic
Hi, I want to change the account registration logic to provide a verification code when registering. I have the field itself added and the handling of this field done, but the problem arises when it wants to verify this code. If the user enters a code that is wrong, or the code is not assigned to his username, at that point it rejects the registration and does not make the account. Otherwise, the account should be created. I have such a code:
But this method requires returning the User model. What if the verification code validation fails? What should I do?
But this method requires returning the User model. What if the verification code validation fails? What should I do?