SignUpAssistantComponent issue

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

Moderators: Lapo, Bax

monk
Posts: 11
Joined: 25 Mar 2020, 07:39

SignUpAssistantComponent issue

Postby monk » 27 Mar 2020, 10:18

Hello,

I've been struggling with the SignUpAssistantComponent. I'm using the C# api with unity.

Client Side Code

Code: Select all

    public void create(string username, string password) {
        SFSObject createObj = new SFSObject();
        createObj.PutUtfString("username", username);
        createObj.PutUtfString("password", password);
       
        server.Send(new ExtensionRequest("$SignUp.Submit", createObj));
    }


When I send this request I get "Sender is not a User" error on the server. I'm confused because how can I login a user if I don't have a user account yet?
User avatar
Lapo
Site Admin
Posts: 23025
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SignUpAssistantComponent issue

Postby Lapo » 27 Mar 2020, 16:17

Hi
you need to create a Zone for users to sign up where they can login as guests. Once the sign-up phase is complete they can log out and log in again in the application's Zone.

Hope it helps
Lapo
--
gotoAndPlay()
...addicted to flash games
monk
Posts: 11
Joined: 25 Mar 2020, 07:39

Re: SignUpAssistantComponent issue

Postby monk » 28 Mar 2020, 00:46

Took me a while to figure it out but I finally did. Thank you.

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 43 guests