help|| Something strange with the function "_server.getSecretKey()"

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

ransaymour
Posts: 27
Joined: 20 Jun 2016, 18:30

help|| Something strange with the function "_server.getSecretKey()"

Postby ransaymour » 02 Jul 2018, 20:20

Hi there,
I tried to test the example of secure login, and no matter what username or password I tried to connect to the server through the example I received an error "Authentication failed".
So I went to check the extension I found that the function "_server.getSecretKey" returns "null" Is there a reason for this? And how do I fix it?
:?

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

Re: help|| Something strange with the function "_server.getSecretKey()"

Postby Lapo » 03 Jul 2018, 07:53

Hi,
unless you've changed the code in either the client or the server the example will work out of the box.
You can use three user names to test the login, as outlined in the source code and relative tutorials.

I'd recommend checking it if you've missed it:
https://www.smartfoxserver.com/docs/1x/ ... /index.htm

If the problem persists, check the server side and see if there's any error at the time of login.

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “Server Side Extension Development”

Who is online

Users browsing this forum: No registered users and 22 guests