djangoflow / django-df-auth

Opinionated Django REST auth endpoints for JWT authentication and social accounts
MIT License
10 stars 19 forks source link

Registering with password and username not working in simple_auth #40

Closed adar2378 closed 11 months ago

adar2378 commented 11 months ago

Registering with username+pasword not working in simple_auth example app

Endpoint: POST api/v1/auth/users/

Payload:

{
    "password": "1234",
    "username": "adar2378"
}

Error:

AttributeError at /api/v1/auth/users/
'User' object has no attribute 'phone_number'

Expected: User should register successfully