Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: User can set blank nickname through API #2074

Open
Dmitrydrum opened this issue Feb 12, 2025 · 0 comments
Open

Bug: User can set blank nickname through API #2074

Dmitrydrum opened this issue Feb 12, 2025 · 0 comments
Labels

Comments

@Dmitrydrum
Copy link

Dmitrydrum commented Feb 12, 2025

Summary

User can set empty nickname through API by postman.
Current version: babf5ed
Prerequisites:
Set cookie and x-srf-token in postman
endpoint https://codebattle.hexlet.io/api/v1/settings

Reproduction steps

1. Type https://codebattle.hexlet.io/api/v1/settings in url
2. Select "PATCH" method
3. Type json in body "name": ""
4. Click on "send" button

Expected result

Validation error. Nickname doesn't change.

Actual result

Nickname changes to empty string

Image

Browsers

No response

OS

No response

@Dmitrydrum Dmitrydrum added the bug label Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant