ChangeUserDetailsRequest is lowercasing the userName
J
Jeff Amiel
started a topic
about 6 years ago
It appears that a call made with ChangeUserDetailsRequest() appears to be lowercasing the username that is submitted. Is this possible/expected?
var request = new SparkRequests.ChangeUserDetailsRequest();
request.newPassword = 'foo'
request.userName = 'BAR'
request.SendAs(playerId);
The resulting username in the player collection is 'bar'. thoughts?
Best Answer
C
Customer Support
said
about 6 years ago
Hi Jeff,
Yes this is the expected behaviour here. All userNames are stored in lowercase. This doesn't just happen when using the ChangeUserDetailsRequest(). This is in place to keep userNames unique. DisplayNames on the other hand don't have to be unique.
Yes this is the expected behaviour here. All userNames are stored in lowercase. This doesn't just happen when using the ChangeUserDetailsRequest(). This is in place to keep userNames unique. DisplayNames on the other hand don't have to be unique.
Jeff Amiel
It appears that a call made with ChangeUserDetailsRequest() appears to be lowercasing the username that is submitted. Is this possible/expected?
The resulting username in the player collection is 'bar'.
thoughts?
Hi Jeff,
Yes this is the expected behaviour here. All userNames are stored in lowercase. This doesn't just happen when using the ChangeUserDetailsRequest(). This is in place to keep userNames unique. DisplayNames on the other hand don't have to be unique.
Thanks,
Liam
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstCustomer Support
Hi Jeff,
Yes this is the expected behaviour here. All userNames are stored in lowercase. This doesn't just happen when using the ChangeUserDetailsRequest(). This is in place to keep userNames unique. DisplayNames on the other hand don't have to be unique.
Thanks,
Liam
Jeff Amiel
ok thanks for the info!
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2487 topics