Signup Assistant - Email as Username

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

Moderators: Lapo, Bax

Post Reply
jgrotto
Posts: 5
Joined: 29 Jan 2012, 17:21

Signup Assistant - Email as Username

Post by jgrotto »

Hi,

Is there a best approach for using Email as Username with the Signup Assistant and take advantage of all the features (email confirmation, password recovery, etc.) The only way I've found to do it is keep both username and email fields in the database.

Thanks!
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Signup Assistant - Email as Username

Post by Lapo »

Yes, it's probably best to repeat the data twice, although not strictly necessary from a pure DB perspective.
Or you can keep the username field but leave it empty. For the sake of the user registration a username field is always requested.

From the LoginAssistant side you can point the username field to the email, and that's it.

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply