• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] mysql_query suggest
#4
(2021-03-22, 05:08 PM)Zow Wrote: Why don't you store it? sry just asking



Can I reset after logged in? like



btw thanks for ur comment



PHP Code:
forward OnPasswordVerify(playeridbool:success);

public 
OnPasswordVerify(playeridbool:success) {

? ? if (
success)

? ? {

? ? ? ? 
PasswordAttempts[playerid] = 0;

? ? ? ? 
CallLocalFunction("OnPlayerLogin""d"playerid);

? ? ? ? 
Player_ResetAccountHash(playerid); // EOS

? ? }

? ? else

? ? {

? ? ? ? 
Account_PromptLogin(playerid);

? ? }





Store it into your MySql database, but not on your server. You only need to access or write a players password just when he logs in or registers. And that is just one or a few times a day you need to use the players password. Keeping a players password on your server not only wastes a bit piece of memory but also is there to be used by future or current exploits of the server and that is a potential way how you can risk every players password being leaked. I don't think you want that to happen to your server.
  Reply


Messages In This Thread
mysql_query suggest - by Zow - 2021-03-19, 09:49 PM
RE: mysql_query suggest - by Y_Less - 2021-03-21, 12:12 PM
RE: mysql_query suggest - by Zow - 2021-03-22, 05:08 PM
RE: mysql_query suggest - by Virsenas - 2021-03-22, 07:25 PM
RE: mysql_query suggest - by Zow - 2021-03-22, 08:49 PM

Forum Jump: