Phuks-co / throat

Open Source link aggregator and discussion platform powering Phuks
https://phuks.co
MIT License
74 stars 32 forks source link

Fix invite code check #209

Closed happy-river closed 4 years ago

happy-river commented 4 years ago

Fix the check for a valid invite code, which has been broken since 6e582f0. Add a regression test.

During the past week we had some users register with made up invite codes or invite codes with typos, and those users would get a 500 error on their user page because getInviteCodeInfo couldn't find the invite code. This problem can be solved from the admin interface by adding a new invite code to match the one that the user used to register.