[Help] Registration/login text
#1

Hello All , i made registration/login system from the following Link . But i want that when user type the password ( on registration or login both) his words show in *** instead of plain text .


Link

Please Help me .
I will +Rep you .
Reply
#2

@Arxalan,

To do that you need to change the style of dialog.
That dialogs have ''DIALOG_STYLE_INPUT'' wich don't hash the passwords.
So change his style from

pawn Код:
DIALOG_STYLE_INPUT
to

pawn Код:
DIALOG_STYLE_PASSWORD
For example. A dialog taken from that tutorial:

pawn Код:
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registering...",""COL_WHITE"Type your password below to register a new account.","Register","Quit");
Doesn't hash the password. If we do:

pawn Код:
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD,""COL_WHITE"Registering...",""COL_WHITE"Type your password below to register a new account.","Register","Quit");
Now it's hashing the passwords.
Reply
#3

Thanks , +Rep you .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)