I'm using getApi().checkSecurePassword to verify user passwords but let's say the password is 2, but I type in 4 as the password. checkSecurePassword returns true anyway. Is this a known issue?
For reference I'm using
(ISession)event.getParameter(SFSEventParam.SESSION)
to get the session info.
Is checkSecurePassword broken?
We are not aware of any problem with checkSecurePassword, it has been working without problems so far.
Also your example is incorrect because the secure password must be used in the server side login handler in order to check the hashed password coming from the client side.
Make sure to check our tutorials, I am sure it will solve your problem:
http://docs2x.smartfoxserver.com/Develo ... ustomLogin
Also your example is incorrect because the secure password must be used in the server side login handler in order to check the hashed password coming from the client side.
Make sure to check our tutorials, I am sure it will solve your problem:
http://docs2x.smartfoxserver.com/Develo ... ustomLogin
-
heisemoshengren
- Posts: 1
- Joined: 20 Apr 2011, 03:12
a custom login broblem!
getApi().checkSecurePassword(session, dbPassword, password);Lapo wrote:We are not aware of any problem with checkSecurePassword, it has been working without problems so far.
Also your example is incorrect because the secure password must be used in the server side login handler in order to check the hashed password coming from the client side.
Make sure to check our tutorials, I am sure it will solve your problem:
http://docs2x.smartfoxserver.com/Develo ... ustomLogin
all false?
always check failed!
password is ok!
'trace'output to console!
password same!
why?
Please read this post: http://forums.smartfoxserver.com/viewtopic.php?t=10918
(the forum search function can be very helpful
)
(the forum search function can be very helpful
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team