Signup / Login with MD5

Post here your questions about the Unity / .Net / Mono / Windows 8 / Windows Phone 8 API for SFS2X

Moderators: Lapo, Bax

Post Reply
Elzean
Posts: 13
Joined: 11 Jul 2014, 07:24

Signup / Login with MD5

Post 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!
Elzean
Posts: 13
Joined: 11 Jul 2014, 07:24

Re: Signup / Login with MD5

Post by Elzean »

Seems like i got this one working and it was a problem on my client app!
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Signup / Login with MD5

Post by Lapo »

Okay :)
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply