Project-Stage-Academy / UA_1155_alpha

UA-1155.Python Project Stage alpha group
3 stars 0 forks source link

Fix Registration's Bug #56

Closed Thoughtseize1 closed 2 months ago

Thoughtseize1 commented 2 months ago

As a user, I would like to register on our service without having to provide a profile picture URL. Currently, when attempting to register without a profile picture URL, an error occurs:

Request URL: http://127.0.0.1:8000/api/users/register/
IntegrityError: NOT NULL constraint failed: users.profile_img_url

Steps to Reproduce: Send a POST request to /api/users/register/ with the following data (without profile_img_url field):

{
    "email": "Nikita@ukr.net",
    "password": "YGGFY2%%",
    "password2": "YGGFY2%%",
    "first_name": "Nikita",
    "last_name": "Sherstianykh"
}

Expected Behavior: Users should be able to register successfully without providing a profile picture URL.

Task Requirements:

Please fix this issue.

Image