Problem with saving account passwords -
nicholasramdhan - 24.03.2015
So, i'm in this script, and every time the player relogs, the password says it's incorrect. I go in the scriptfiles, and the password is = to a bunch of numbers. So, if anyone could help me / tell me what lines or something to post, I can.
This is the line where it loads the password/account from:
Код:
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid,20,DIALOG_STYLE_PASSWORD,"Login","{24FF0A}Welcome to Gangwar Deathmatch.\n"MSG_WHITE"Please enter your password, to ensure your time on GW:DM!\n{24FF0A}Current Version: GW:DM v1.0!\n{FF9900}Enjoy your stay!","Login","Exit");
This is what my Scriptfiles folder looks like.
Scriptfiles > Folder(Logs) Folder(Users) Notepad(Ban)
In Users, I click on my name which I registered with, it says this:
[Data]
Password = 419103658
Cash = 5000
Admin = 0
Kills = 0
Deaths = 0
Muted = 0
Banned = 0
ReportBanned = 0
PlayingHours = 0
LSPD = 0
but, that's not my password, and when I relog, those numbers don't work, or the password that I registered with before. So, any help please?
Re: Problem with saving account passwords -
Wolfe - 24.03.2015
Are you using yini?
Re: Problem with saving account passwords -
nicholasramdhan - 24.03.2015
Yes i'm using YSI/yini
#include <YSI\y_ini> // Created by ******. // Registration & Login. //
Re: Problem with saving account passwords -
Wolfe - 24.03.2015
This is a common error. Try running samp-server.exe as an administrator. IF that does not work re-download yini
Re: Problem with saving account passwords -
nicholasramdhan - 24.03.2015
See, the thing is, I can't run as administrator because I upload to a host, but i'll try reinstalling. Standby while I check
Re: Problem with saving account passwords -
CrossOv3r - 24.03.2015
Those "numbers" won't work.
Are you hashing (encrypting) passwords?
Re: Problem with saving account passwords -
nicholasramdhan - 24.03.2015
Quote:
Originally Posted by CrossOv3r
Those "numbers" won't work.
Are you hashing (encrypting) passwords?
|
Sadly IDK what you're talking about. Sorry i'm pretty noob at scripting :/
Is there someone I can add on skype and send this to that can help me to fix it?
Re: Problem with saving account passwords -
JaydenJason - 24.03.2015
Quote:
Originally Posted by nicholasramdhan
Sadly IDK what you're talking about. Sorry i'm pretty noob at scripting :/
Is there someone I can add on skype and send this to that can help me to fix it?
|
Hashing passwords means that the passwords get changed into a bunch of weird numbers/letters etc to secure the passwords from a hacker who can get on your vps and steal the accounts and passwords
And when you put the original password into a dialog, you can hash the input to see if it matches the numbers in your user. ini
Код:
INI_WriteInt(File,"Password", PlayerInfo[playerid][pPass] = udb_hash(inputparam));
That's your hashing
Re: Problem with saving account passwords -
nicholasramdhan - 24.03.2015
Quote:
Originally Posted by JaydenJason
Hashing passwords means that the passwords get changed into a bunch of weird numbers/letters etc to secure the passwords from a hacker who can get on your vps and steal the accounts and passwords
And when you put the original password into a dialog, you can hash the input to see if it matches the numbers in your user. ini
Код:
INI_WriteInt(File,"Password", PlayerInfo[playerid][pPass] = udb_hash(inputparam));
That's your hashing
|
Okay so is there a solution for the passwords not really working?
Re: Problem with saving account passwords -
JaydenJason - 24.03.2015
Quote:
Originally Posted by nicholasramdhan
Okay so is there a solution for the passwords not really working?
|
The passwords are working, try registering a new account and input: testpswd
Themselves quit the game and see if you can log in with the password: testpswd