Page 1 of 1

Signup / Login with MD5

Posted: 27 Nov 2014, 11:53
by Elzean
I would like to use the PasswordMode.MD5 so i set it up as follow on the server side :

Code: Select all

suac.getConfig().passwordMode = PasswordMode.MD5;
and for password recovery :

Code: Select all

suac.getConfig().passwordRecovery.mode = RecoveryMode.GENERATE_NEW;

For testing i send the password recovery request from the client and received a new password, i also see a new encrypted password in the BDD. Then i try to login with this new password but i always get an error telling me the password is wrong. Here is my login request :

Code: Select all

smartFox.Send(new Sfs2X.Requests.LoginRequest(vm.username, PasswordUtil.MD5Password(vm.password), "MyZone"));
I also tried without the "PasswordUtil.MD5Password" both does not let me login.

I guess i'm doing something wrong i missed something in the setup but i can't find ?

Thanks!

Re: Signup / Login with MD5

Posted: 27 Nov 2014, 20:01
by Elzean
Seems like i got this one working and it was a problem on my client app!

Re: Signup / Login with MD5

Posted: 28 Nov 2014, 13:23
by Lapo
Okay :)