txAdmin icon indicating copy to clipboard operation
txAdmin copied to clipboard

[BUG] Cfx.re login use forum id instead of username

Open TheIndra55 opened this issue 3 years ago • 4 comments

txAdmin/FXServer versions: 4.11.0 / 5273

Describe the bug Currently the citizenfx provider login uses the current forum username as id instead of the real forum user id, thus changing your username on the forums will result in no longer being able to login

This issue is mentioned a lot in moderation inbox after people had their username changed

To Reproduce N/A

Expected behavior The forum user id will be used instead of the username and the user can still login even though their username is different

Screenshots image

Additional context N/A

TheIndra55 avatar Jan 28 '22 16:01 TheIndra55

Me too..

frazz1234 avatar Feb 02 '22 01:02 frazz1234

Issue noted, thanks for informing.

tabarra avatar Feb 02 '22 02:02 tabarra

Issue noted, thanks for informing.

FYI: You can resolve fivem: identifiers (which are essentially the forum IDs) to their respective username using https://policy-live.fivem.net/api/getUserInfo/:userid

e.g. fivem:89762 -> https://policy-live.fivem.net/api/getUserInfo/89762 -> result.username

Doxylamin avatar Feb 07 '22 15:02 Doxylamin

@Doxylamin Yup, that's what I'm using.
https://github.com/tabarra/txAdmin/blob/master/src/webroutes/adminManager/actions.js#L93

tabarra avatar Feb 07 '22 17:02 tabarra

Done.

tabarra avatar Jan 17 '23 10:01 tabarra