[ini] Case sensitive problem.
#1

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.
Reply
#2

Convert the inputtext and the fetched username to uppercase, then check if they are equal.
Reply
#3

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.
Reply
#4

which ini system do you use?
Reply
#5

It has nothing to do with the ini system itself. It's the operating system. Linux is case sensitive, Windows is not.
Reply
#6

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.
Reply
#7

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.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)