python - Multiple Login Field Options for Django Rest Framework (JWT) -




how can override django-rest-framework-jwt jsonwebtokenserializer allow user login via either email, username or password.

i see suggested option in github issue not sure how i'd override default jsonwebtokenserializer not among jwt_auth settings.

i want able provide functionality seen in question can allow django user login via field may have in custom user table

for using django allauth, adding these settings in settings.py file solves this.

account_authentication_method=“username_email”  account_email_required = true  account_unique_email = true  account_username_required = true 

all configurations can found here.





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -