You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, the documentation says "Optional either username or email can be used, or both. It returns response with token along with it for authentication" but it doesn't work if I don't provide an email address.
I suggest deleting the line email = data['email'] because the email variable is not used in this function and causes an error if there is no email given.
The text was updated successfully, but these errors were encountered:
Hi, the documentation says "Optional either username or email can be used, or both. It returns response with token along with it for authentication" but it doesn't work if I don't provide an email address.
In
api/serializers.py
:I suggest deleting the line
email = data['email']
because theemail
variable is not used in this function and causes an error if there is no email given.The text was updated successfully, but these errors were encountered: