Problem In Login System
#4

PHP код:
case DIALOG_LOGIN:
        {
            if (!
response) return Kick(playerid);
            if( 
response )
            {
                  if(!
strcmp(inputtextdini_Get(UserPath(playerid), "Password"false)))
                {
                    
ShowPlayerDialog(playeridDIALOG_SUCCESS_2DIALOG_STYLE_MSGBOX,"{008000}Success!","{FFFF00}You have successfully logged in!","Ok","");
                }
                else
                {
                   
ShowPlayerDialog(playeridDIALOG_LOGINDIALOG_STYLE_INPUT,"Login","{FF0000}You have entered an incorrect password.\n""Type your password below to login.","Login","Quit");
                }
                return 
1;
            }
        }
    } 
That may work. Also you aren't hashing any passwords; that isn't good for security reasons.
Reply


Messages In This Thread
Problem In Login System - by CarRamper - 18.08.2016, 08:53
Re: Problem In Login System - by Tass007 - 18.08.2016, 09:15
Re: Problem In Login System - by CarRamper - 18.08.2016, 09:51
Re: Problem In Login System - by Tass007 - 18.08.2016, 10:03
Re: Problem In Login System - by Konstantinos - 18.08.2016, 10:11
Re: Problem In Login System - by CarRamper - 18.08.2016, 10:11
Re: Problem In Login System - by Tass007 - 18.08.2016, 11:08

Forum Jump:


Users browsing this thread: 1 Guest(s)