Password Confirmation
#1

How can i add password confirmation upon registration? Thanks!

Quote:

if(dialogid == DIALOG_REGISTER)
{
new string_reg[128], string_reg_name[128], playername[MAX_PLAYER_NAME];

GetPlayerName(playerid, playername, sizeof(playername));

format(string_reg, sizeof(string_reg), "Register - {FFD700}%s", playername);
format(string_reg_name, sizeof(string_reg_name), "{FF0000}Password must be atleast 10 characters.\n{FFFFFF}Welcome to Gravity Gaming Roleplay, %s!\n\n{FFFFFF}Please fill up again your desired password.", playername);

if(!response) return Kick(playerid);
if(strlen(inputtext) < 10)
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, string_reg, string_reg_name, "Register", "Quit");
return 0;
}

WP_Hash(Player[playerid][Password], 129, inputtext);

ShowPlayerDialog(playerid, DIALOG_GENDER, DIALOG_STYLE_LIST, "Gender", "Male\nFemale", "Select", "Quit");
}

Reply


Messages In This Thread
Password Confirmation - by eikzdej - 23.03.2016, 03:54
Re: Password Confirmation - by BiosMarcel - 23.03.2016, 06:27
Re: Password Confirmation - by saffierr - 23.03.2016, 09:40

Forum Jump:


Users browsing this thread: 1 Guest(s)