the DBLogin DEMO for unity SF2X

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

Moderators: Lapo, Bax

netstabber
Posts: 10
Joined: 06 Jan 2010, 09:55
Contact:

the DBLogin DEMO for unity SF2X

Postby netstabber » 10 Dec 2010, 12:39

hello
I try to use DBLogin DEMO in unity but never login in zone I find error is

// Verify the secure password
if (!getApi().checkSecurePassword(session, dbPword, cryptedPass))
{
SFSErrorData data = new SFSErrorData(SFSErrorCode.LOGIN_BAD_PASSWORD);
data.addParameter(userName);

throw new SFSLoginException("Login failed for user: " + userName, data);
}

the"getApi().checkSecurePassword(session, dbPword, cryptedPass" always false I don't understand my password in server or client as same


sometime in unity I type
smartFox.Send(new LoginRequest("Fozzie", "bear", zone));
in sfs I type
if (!getApi().checkSecurePassword(session, "bear", cryptedPass))
but still wrong
unity print "Login error: Wrong password for user: Fozzie"
sfs print"Login failed for user Fozzie"

I try all day getApi().checkSecurePassword(session, dbPword, cryptedPass) never true

and I print"CryptoUtils.getClientPassword(session, cryptedPass)))
" and cryptedPass them no to same it different

some flash friend tall me 100% ture but unity I can't and my friend can't too please help me
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Postby ThomasLund » 10 Dec 2010, 13:18

There have been some discussions on that lately. If I recall, then you need to convert your password to all uppercase (or was it all lowercase?) when comparing the 2.

Try to search this forum - it was discussed within the last 2 weeks I think

/Thomas
netstabber
Posts: 10
Joined: 06 Jan 2010, 09:55
Contact:

Postby netstabber » 10 Dec 2010, 13:45

there have too many ...can you tell me which one or name? did you have sfs company talk about same question? it's very kind of you
appels
Posts: 464
Joined: 28 Jul 2010, 02:12
Contact:

Postby appels » 10 Dec 2010, 14:27

encryptedPass.toLowerCase()
netstabber
Posts: 10
Joined: 06 Jan 2010, 09:55
Contact:

Postby netstabber » 11 Dec 2010, 00:58

thank you apples it's true now :lol:

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 14 guests