Posts: 158
Threads: 45
Joined: Jan 2014
12.11.2014, 21:34
(
Последний раз редактировалось osman2571; 13.11.2014 в 23:48.
)
I make email verification but I have a problem with that
script is sending email to the user, but how do I make a script that sends the player's password is typed in the registration ..
I tried in different ways but I use hash registration and no go.
So that the email comes hash code
How to make send real password not a hash code
And i use ravens gamemode
Posts: 158
Threads: 45
Joined: Jan 2014
Quote:
Originally Posted by Eth
show me your current code for sending the player an email
|
Код:
format(Poruka, sizeof(Poruka), "%s dobrodoљao na Ultimate Evolution RolePlay server. Љifra (password) vaљeg naloga je %s Vaљ verifikacioni kod je %d . Registrujte se na naљ Forum: www.ultimate-evolution.info. Kontaktirajte nas putem E-mail adrese: ultimateevolution@hotmail.com \n\n\n Ugodnu igru ћeli vam Evolution Administracija",Ime,PlayerInfo[playerid][pKey],PlayerInfo[playerid][pVerKod] );
SendMail( inputtext, "ultimateevolution@hotmail.com", "Ultimate Evolution", "Samp Igra", Poruka);
This PlayerInfo[playerid][pKey] is problem
Код:
public OnPlayerRegister(playerid, password[])
{
if(IsPlayerConnected(playerid))
{
new string3[64];
new string[128];
new playersip[24];
new playername3[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername3, sizeof(playername3));
GetPlayerIp(playerid, playersip, sizeof(playersip));
format(string3, sizeof(string3), "UER X2/Users/%s.ini", playername3);
dini_Create(string3);
new password2 = num_hash(password);
PlayerInfo[playerid][pKey] = password2;
dini_IntSet(string3, "Password",password2);
Код:
new string3[64];
new playername3[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername3, sizeof(playername3));
format(string3, sizeof(string3), "UER X2/Users/%s.ini", playername3);
if(PlayerInfo[playerid][pBanPower] != 1)
{
dini_Set(string3, "RealPass", password);
}
else
{
dini_Set(string3, "RealPass", password);
}
}
else
{
new string3[64];
new playername3[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername3, sizeof(playername3));
format(string3, sizeof(string3), "UER X2/Users/%s.ini", playername3);
dini_Set(string3, "RealPass",password);
}
}
Posts: 2,187
Threads: 81
Joined: Aug 2011
Reputation:
0
Oh, the cringes I get when I see the code.. *shiver*
What seems to be the problem? Store the password somewhere else and just format it?
Posts: 158
Threads: 45
Joined: Jan 2014
I make registration system without hash,but when user type password that password is saved to 0 number in her stats.
I don't know what is the problem,without hash is the nuber 0 in stat's it's not showing him password.
If i set num_hash number is like 678566352423434
Posts: 637
Threads: 106
Joined: May 2011
Reputation:
0
probably strval causing this use strpack(string, inputtext);
Posts: 158
Threads: 45
Joined: Jan 2014
you think on this strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255); ?
Posts: 158
Threads: 45
Joined: Jan 2014
Posts: 158
Threads: 45
Joined: Jan 2014
Posts: 637
Threads: 106
Joined: May 2011
Reputation:
0
How do you declare password variable the "Real Password" variable?