ITEP-87923: Validate user password and username API fields#1335
Conversation
|
@daddo-intel The user can be created with invalid scene uid |
Not sure I understand this comment |
The user definition in spec includes |
There was a problem hiding this comment.
Pull request overview
Adds object-level validation to the Manager service’s UserSerializer to enforce username/password presence on user creation and prevent blank values when those fields are updated.
Changes:
- Add
UserSerializer.validate()to requireusernameandpasswordon create. - Add update-time checks to reject blank
username/passwordwhen those keys are provided in the request.
The |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
📝 Description
Small change to serializer.py to validate password and username API fields for user
✨ Type of Change
Select the type of change your PR introduces:
🧪 Testing Scenarios
Describe how the changes were tested and how reviewers can test them too:
✅ Checklist
Before submitting the PR, ensure the following: