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

check if the field the user wants to change authorized #521

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

a-levra
Copy link
Collaborator

@a-levra a-levra commented Mar 12, 2024

POST /user/update-infos/

issue :

if you use postman, you could change an attribute of your account that you were not supposed to change.
For example, you could increase your elo.

fix :

in POST /user/update-infos/, all fields are now checked if they are in the fields a user is authorized to change
( username, password, email..)

…LIDATORS ( aka in the field the user is authorized to change)
@a-levra a-levra self-assigned this Mar 12, 2024
@a-levra a-levra marked this pull request as ready for review March 12, 2024 13:13
@a-levra a-levra merged commit 20910e3 into main Mar 12, 2024
7 checks passed
@a-levra a-levra deleted the fix-update-infos-too-permissive branch March 12, 2024 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants