full-stack-fastapi-template
full-stack-fastapi-template copied to clipboard
Update user without password causes error
When updating a user's details without updating the password, the backend fails. The issue is very simple:
https://github.com/tiangolo/full-stack-fastapi-postgresql/blob/490c554e23343eec0736b06e59b2108fdd057fdc/%7B%7Bcookiecutter.project_slug%7D%7D/backend/app/app/crud/crud_user.py#L34
No password is provided during update, so correct:
if update_data.get("password"):
See this pull request https://github.com/tiangolo/full-stack-fastapi-postgresql/pull/168