momentum-mod / website

Momentum Mod's main website.
https://momentum-mod.org
MIT License
55 stars 60 forks source link

Backend resets user alias and country on each login #921

Closed tsa96 closed 1 month ago

tsa96 commented 3 months ago

If you assign yourself a custom alias via the dashboard, sign out (browser discards JWT), sign in again (requests new JWT), we re-request your public Steam info, and update your profile with it, even if the user already exists.

Doing this for avatars makes sense, but if the account already exists, we shouldn't be setting the alias or country code.

This is like a 2 line fix + tests and I already see the offending code, doing myself ASAP.