28.02.2014, 20:02
Hi !
I have a problem for a while. I took the tutorial of Kush about the "Login and Register System" and I have a problem. When the dialog login appear, I write my password that I previously register but it say me that my password is wrong ! But I'm sure, my password has been CORRECTLY write ! Also, I hashed my password with the plugins Whirlpool.
The code :
(Don't pay attention to language)
Thanks for your help !
I have a problem for a while. I took the tutorial of Kush about the "Login and Register System" and I have a problem. When the dialog login appear, I write my password that I previously register but it say me that my password is wrong ! But I'm sure, my password has been CORRECTLY write ! Also, I hashed my password with the plugins Whirlpool.
The code :
Код:
case DIALOG_LOGIN: { if (!response) return Kick(playerid); if(response) { new hashpass[129]; WP_Hash(hashpass,sizeof(hashpass),inputtext); if(!strlen(inputtext)) return ShowPlayerDialog(playerid,DIALOG_LOGIN,3,"Une erreur est survenue","Vous n'avez rien saisie.\nTaper votre mot de passe ci-dessous pour vous connecter.","Se connecter","Quitter"); if(strcmp(hashpass,JoueurInfo[playerid][jMDP],true)) { INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid); ShowPlayerDialog(playerid,DIALOG_SUCCESS_2,0,"Connection rйussi !","Vous avez йtй correctement connectй au serveur.\nVous pouvez maintenant jouer. Bonne chance !","Jouer !",""); } else { ShowPlayerDialog(playerid,DIALOG_LOGIN,3,"Une erreur est survenue","Vous avez taper un mauvais mot de passe.\nTaper votre mot de passe ci-dessous pour vous connecter.","Se connecter","Quitter"); return 1; } } }
Thanks for your help !