SA-MP Forums Archive
Registration + i give rep for help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Registration + i give rep for help (/showthread.php?tid=546197)



Registration + i give rep for help - osman2571 - 13.11.2014

hi,
there's some problem in dini, when the player registers , the password saves as numbers... :/ before some days i was seeing some register tutorials and some of them had the correct way to save password, i have forget which one :/
i don't wanna se number on password i want see real password.


Re: Registration + i give rep for help - rymax99 - 13.11.2014

For what non malicious intent would you possibly want to see passwords?


Re: Registration + i give rep for help - osman2571 - 13.11.2014

bacause i make email verification who need player password without hash code


Re: Registration + i give rep for help - FrankTimber - 13.11.2014

It means they are saving as integers when you need them as strings. If you use dialogs you should use something like this:

Код:
strmid(password, inputtext, 0, strlen(inputtext), 128);
Change 'password' to the name you use for their password.


Re: Registration + i give rep for help - Kwarde - 13.11.2014

@osman2571:
You should really consider to DO use he hashing.. what if the database/files get hacked? All passwords could be abused, especially if someone's using that password on their mail account for example. I think, as a server owner or scripter, one of the most important things is the security of people's privacy data.

And about the email vertification; on the page where it gets certificated, just hash the password they enter there too and then compare the two hashed passwords...


Re: Registration + i give rep for help - osman2571 - 13.11.2014

Fixed by me.