Detecting Username Already Taken on Server Side

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

User avatar
coolboy714cp
Posts: 323
Joined: 06 Feb 2010, 02:45
Contact:

Detecting Username Already Taken on Server Side

Postby coolboy714cp » 19 Mar 2014, 06:24

How would I be able to detect whether or not a username has already been taken in my custom login extension, then output a message on the client?
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Detecting Username Already Taken on Server Side

Postby Lapo » 19 Mar 2014, 09:06

There isn't a way to detect the error from the Extension because the check is done before control is passed to the Extension code.
However you can customize any error message, including that one.

See here:
http://docs2x.smartfoxserver.com/Advanc ... r-messages
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 126 guests