[ini] Case sensitive problem. -
Kebab- - 06.01.2013
Hello users of SA:MP forums,
I'm having problems related to .ini and case sensitive. My registration and login system appears to be case sensitive, meaning that there can be two accounts under the same name, but different cases (caps and lowercase). For example, if someone had an account called John_Doe, they'll need to type the correct case sensitive in order to access their account and if someone else typed in john_doe, they'll be able to register a new account, however not access their files (brand new account) and it wouldn't delete the other account.
Less detail:
John_Doe exists and someone decides to register themselfs as john_doe, it will allow them because it's case sensitive.
Thankyou for those who attempted to help +rep.
Re: [ini] Case sensitive problem. -
Sinner - 06.01.2013
Convert the inputtext and the fetched username to uppercase, then check if they are equal.
Re: [ini] Case sensitive problem. -
Kebab- - 06.01.2013
Quote:
Originally Posted by Sinner
Convert the inputtext and the fetched username to uppercase, then check if they are equal.
|
I'm sorry, but I'm kind of new to this whole Pawn thing. Could you please provide the codes and I'll convert it into my script? Thankyou.
Re: [ini] Case sensitive problem. -
eesh - 06.01.2013
which ini system do you use?
Re: [ini] Case sensitive problem. -
Vince - 06.01.2013
It has nothing to do with the ini system itself. It's the operating system. Linux is case sensitive, Windows is not.
Re: [ini] Case sensitive problem. -
Sinner - 06.01.2013
Quote:
Originally Posted by Vince
It has nothing to do with the ini system itself. It's the operating system. Linux is case sensitive, Windows is not.
|
I think he's talking about a login system. Players type in their name (+password?) and it checks the credentials based on that.
Re: [ini] Case sensitive problem. -
Kebab- - 06.01.2013
Quote:
Originally Posted by Vince
It has nothing to do with the ini system itself. It's the operating system. Linux is case sensitive, Windows is not.
|
THankyou, that was the issue. Made myself sound like a right idiot. Simple mistake.
Quote:
Originally Posted by Sinner
I think he's talking about a login system. Players type in their name (+password?) and it checks the credentials based on that.
|
Thankyou for trying to help me, but I've got this sorted. I didn't explain myself well enought. Once again, thanks.
Please close this thread.