Register System Help
#1

Hello guys, I have some problems with my login code. I don't know why, but it really can't be fixed by me.

So, let me explain the problem.
When I login, then I enter my password, it always allow me to login, even without putting the correct pass.

pawn Код:
new string[256];
WP_Hash(string, sizeof(string), inputtext);
//if(!strcmp(string, PlayerData[playerid][pPassword]))
//if(strcmp(PlayerData[playerid][pPassword], string, true) == 0)
I'm using y_ini and Whirlpool.

Kindly help me as soon as possible! Thank you!
Reply
#2

Could you show the lines where you load the password into the pPassword variable?

Also, Whirlpool only needs a buffer with 129 len. You should be checking that the 'ignore_case' argument talks false, unless your system puts all passwords to lowercase or uppercase prior.
Reply
#3

Never mind, thanks anyways. I fixed this.

I used udb instead of Whirlpool, thanks to Kush's tutorial.
Reply
#4

That wouldn't solve your problem.
Look, udb is bad idea. ****** said it.

If you're using newbienoob's tutorial go look at the ending of the topic.
You will see the solution for it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)