Custom Sign Up

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

Moderators: Lapo, Bax

LuffyGray
Posts: 32
Joined: 06 Feb 2017, 16:01

Custom Sign Up

Postby LuffyGray » 16 Feb 2017, 14:54

What's the typical design with SFS for a sign up? I've got the login working with a back end DB but If i try to make a custom extension call to create an account I will be told that the caller isn't a user and that it has been disregarded.

I thought about using an inital zone that anyone gets automatically logged into as a guest and can then register but I've also come across the sign up assistant but I can't find enough documentation to provide an answer to my question which is, can I make use of the sign up assistant without having the user logged into a zone first?

Thank you.
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Custom Sign Up

Postby Lapo » 16 Feb 2017, 15:02

Yes, you're right. You can login the non signed up user in a special Zone that is used only for creating a new account, then you can logout and login again in the application Zone with the new credentials.

We a detailed tutorial on this here:
http://docs2x.smartfoxserver.com/Exampl ... gnup-login
(there's also an iOS version of it, if you prefer)

Hope it helps
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 102 guests