Skip to content

Account fix#1

Open
rafaelklaessen wants to merge 2 commits intoweSPOT:masterfrom
rafaelklaessen:account-fix
Open

Account fix#1
rafaelklaessen wants to merge 2 commits intoweSPOT:masterfrom
rafaelklaessen:account-fix

Conversation

@rafaelklaessen
Copy link

Problem

The createAccount method on oauth/account/createAccount wouldn't actually check wether an account existed before creating the new one.

Implications

Because of this, everyone can change another's account data by simply making a request to oauth/account/createAccount with that person's username and different userdata.

Solution

I added an account exists check so that it first verifies that the account doesn't exist yet. If the account does exist, it doesn't create the new user.

Please note: this code isn't actually tested.

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.

1 participant