Forum QuickConnect simpleRegister automatically unique username

Discussion and help relating to PlayerIO's QuickConnect feature, including Facebook Connect and Kongregate Connect.

simpleRegister automatically unique username

Postby JoshuaC3000 » July 25th, 2013, 4:46 pm

Hello, I have a question about simpleRegister:

I would like to be able to have the server create a unique username when simpleRegister() is run in the client.

I tried doing something like simpleRegister(stage,"Game-ID",null,"somepassword","email"... ect.

But of course that doesn't work, at least for me.

Therefore my question is how would I do such a thing? I have had many ideas on how I could, but they seem like so much extra work.

Also, if you wanted to know why I don't need a user defined username directly, it's because I have a server(room) that handles and verifies the username and other data. (Basically a registration setup room)
The player would also login with their email, so the player doesn't need to know this unique "username".
JoshuaC3000
 
Posts: 1
Joined: July 20th, 2013, 7:14 pm

Re: simpleRegister automatically unique username

Postby Henrik » July 26th, 2013, 12:27 am

If you're never going to use the username, just generate something unique on the client, a GUID or similar.
Henrik
.IO
 
Posts: 1832
Joined: January 4th, 2010, 1:53 pm


Return to QuickConnect



cron