issackelly / sc2tourney

Starcraft 2 Tournament Application in a Django App
http://pyconsc2.issackelly.com
19 stars 4 forks source link

Battle.net usernames are just emails #2

Open joequery opened 12 years ago

joequery commented 12 years ago

In the registration, you ask for battle.net usernames: Aren't these just emails?

issackelly commented 12 years ago

I was looking more for the Nick and not the RealID name, something you could be identified by in chat (but... yeah it's supposed to be unique in the DB, which it's not on Battle.net, so this is sort of a bug

GraylinKim commented 12 years ago

I believe that Battle.net ID's can currently be scoped by Gateway and Region. It is possible that you don't need the region number to scope the nickname, I haven't confirmed it.

Example: http://us.battle.net/sc2/en/profile/2358439/1/ShadesofGray/

Gateway: US Region: 1 Nick: ShadesofGray

Since nicknames are subject to change it might be better to use the account id. I don't play Starcraft on this computer so I can't confirm my account id right now but I believe that the replay recorder's account id is the one encoded in the replay file. Asking for a registering user to upload a replay they recorded might provide you this id which I think must certainly be unique.

Of course just having the user register with an email like a normal account would work too :)

joequery commented 12 years ago

I think using the standard two fields for Gamer ID and Character Code would work better for attributes of the user, and just make the email account unique/primary.