Sign In Register

How can we help you today?

Start a new topic
Answered

ChangeUserDetailsRequest is lowercasing the userName

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

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


Answer

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

ok thanks for the info!

Login to post a comment