SA-MP Forums Archive
Email verification - 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: Email verification (/showthread.php?tid=546094)



Email verification FIXED BY ME - osman2571 - 12.11.2014

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


Re: Email verification - Eth - 12.11.2014

show me your current code for sending the player an email


Re: Email verification - osman2571 - 12.11.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);
			}
		}



Re: Email verification - RajatPawar - 13.11.2014

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?


Re: Email verification - osman2571 - 13.11.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


Re: Email verification - Dziugsas - 13.11.2014

probably strval causing this use strpack(string, inputtext);


Re: Email verification - osman2571 - 13.11.2014

you think on this strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255); ?


Re: Email verification - osman2571 - 13.11.2014

Bump


Re: Email verification - osman2571 - 13.11.2014

Bump


Re: Email verification - Dziugsas - 13.11.2014

How do you declare password variable the "Real Password" variable?