check if email exist
#1

im create login sistem use email verification, how to check if email used by other player? im use dini
Reply
#2

the an proper http request that goes to a server which handles the request, i guess you can ****** how that works
Reply
#3

i mean . if player input on inputbox, check if email exist chose other email. .
example for variable
Код:
pinfo[playerid][email]
then check every data "email" at .ini player data
like this
Код:
 if (email != exist)
ShowPlayerDialog(playerid,666,DIALOG_STYLE_INPUT,"Register","insert verifikation number","Enter","Exit");
else
ShowPlayerDialog(playerid,777,DIALOG_STYLE_INPUT,"Register","your email already exist chose other email","Enter","Exit");
but im dont understand how to get if (email != exist) from every palyer data
Reply
#4

Short answer: you can't.

Long answer: it's too impractical. Either open each player's file and look for the e-mail address or keep one large list of e-mail addresses. Either way, the time to lookup an address increases as the number of registrations grows and therefore lag increases as well. One large list of addresses isn't a very good idea from a security standpoint either. Add to that that disk IO is inherently very slow and that dini is literally the worst file system ever, and you have a recipe for disaster.
Reply
#5

Why you just dont use mysql? With mysql everything is possible
Reply
#6

Quote:
Originally Posted by Vince
Посмотреть сообщение
Short answer: you can't.

Long answer: it's too impractical. Either open each player's file and look for the e-mail address or keep one large list of e-mail addresses. Either way, the time to lookup an address increases as the number of registrations grows and therefore lag increases as well. One large list of addresses isn't a very good idea from a security standpoint either. Add to that that disk IO is inherently very slow and that dini is literally the worst file system ever, and you have a recipe for disaster.
Thanks for explanation
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)