loicteixeira / gj-unity-api

[MOVED] Game Jolt API wrapper for Unity.
https://github.com/InfectedBytes/gj-unity-api/
MIT License
16 stars 13 forks source link

Prevent user to be unauthenticated if his name is updated but only the case change #44

Closed loicteixeira closed 9 years ago

loicteixeira commented 9 years ago

Usernames are case insensitive for API calls but are still stored in the database with the right case for display purposes.

When a user sign in, his name is stored in the User objects as it was given. Once authenticated, the API will automatically fetch all the extra information which include the name with the right cas. When updating the name, it flags the User as "not authenticated".

While it is a good thing to flag the User as "not authenticated" when updating its name (it ensure future calls aren't going to fail because the name/token have been updated), it should not flag the User as "not authenticated" if only the case changed.