Email verification
#1

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
Reply
#2

show me your current code for sending the player an email
Reply
#3

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);
			}
		}
Reply
#4

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?
Reply
#5

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
Reply
#6

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

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

Bump
Reply
#9

Bump
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)