Register System issues.
#1

Hello.

So I'm having some issues with my registration system. When I register my account, it writes just fine. But upon trying to login - I can login with ANY password. I've also tried to modify it in various ways but issues still occur, such as me not being able to login at all.

Here's my current code. I was following a tutorial, attempting to learn more about the way yini works. If more code is needed, let me know.

pawn Код:
if(dialogid == REGISTER_LOGIN)
    {
        if(!response) return Kick(playerid);
        if(response)
        {
            new hashpass[129];
            WP_Hash(hashpass,sizeof(hashpass),inputtext);
            if(!strcmp(hashpass, pInfo[playerid][pPass], false))
            {
                INI_ParseFile(Path(playerid),"LoadAccount_%s",.bExtra = true, .extra = playerid);
                SendClientMessage(playerid,-1,"Welcome back! You have successfully logged in");
            }
            else
            {
                ShowPlayerDialog(playerid,REGISTER_LOGIN,DIALOG_STYLE_INPUT,"Login","Incorrect Password.","Login","Quit");
                return 1;
            }
         }
    }
Reply


Messages In This Thread
Register System issues. - by rangerxxll - 14.04.2014, 23:50
Re: Register System issues. - by mrkiller90 - 15.04.2014, 02:06
Re: Register System issues. - by Chenko - 15.04.2014, 02:13
Re: Register System issues. - by JacobEdwards - 15.04.2014, 02:38
Re: Register System issues. - by rangerxxll - 15.04.2014, 02:42
Re: Register System issues. - by JacobEdwards - 15.04.2014, 02:44
Re: Register System issues. - by rangerxxll - 15.04.2014, 02:50
Re: Register System issues. - by rangerxxll - 15.04.2014, 18:22
Re: Register System issues. - by JeaSon - 15.04.2014, 18:35
Re: Register System issues. - by rangerxxll - 15.04.2014, 18:42

Forum Jump:


Users browsing this thread: 4 Guest(s)