nvh Posted August 27, 2021 Posted August 27, 2021 how to distinguish "Admin", "admin", "aDMin" are the same name?? thanks
1 Cheshire Posted August 27, 2021 Posted August 27, 2021 You'll want to look here to make changes like this for the username:Â https://github.com/AscensionGameDev/Intersect-Engine/blob/d009c52df0cf92163ad8d94d03d995194e26d08a/Intersect.Server/Database/PlayerData/User.cs#L581 And over here for the character name:Â https://github.com/AscensionGameDev/Intersect-Engine/blob/d009c52df0cf92163ad8d94d03d995194e26d08a/Intersect.Server/Entities/Player.Database.cs#L121 nvh 1
0 nvh Posted August 27, 2021 Author Posted August 27, 2021 1 hour ago, Cheshire said: You'll want to look here to make changes like this for the username:Â https://github.com/AscensionGameDev/Intersect-Engine/blob/d009c52df0cf92163ad8d94d03d995194e26d08a/Intersect.Server/Database/PlayerData/User.cs#L581 And over here for the character name:Â https://github.com/AscensionGameDev/Intersect-Engine/blob/d009c52df0cf92163ad8d94d03d995194e26d08a/Intersect.Server/Entities/Player.Database.cs#L121 it's like this? public static bool UserExists(string nameOrEmail) { Â Â Â Â if (nameOrEmail == ??) Â Â Â Â Â Â { Â Â Â Â Â Â Â Â return false; Â Â Â Â Â Â } }
0 Cheshire Posted August 27, 2021 Posted August 27, 2021 In code you'll likely want to have hashes of names if you want them to be case sensitive and compare those instead of the actual names.  Otherwise at the database level you'd have to figure out how to make the fields case sensitive.Â
0 Tron Posted August 27, 2021 Posted August 27, 2021 You can probable store in a DB all character names in upper and compare to that
0 Cheshire Posted August 27, 2021 Posted August 27, 2021 9 minutes ago, Scaly said: You can probable store in a DB all character names in upper and compare to that  Unfortunately not because the database layer is case insensitive.Â
0 nvh Posted August 28, 2021 Author Posted August 28, 2021 5 hours ago, Cheshire said: In code you'll likely want to have hashes of names if you want them to be case sensitive and compare those instead of the actual names.  Otherwise at the database level you'd have to figure out how to make the fields case sensitive. If the character is uppercase, the server will return an error.  i don't want the player to put username and ingame name in uppercase
0 Cheshire Posted August 28, 2021 Posted August 28, 2021 That's not the information I gathered from the first post at all and quite different. Â Could you provide a clear example of what you want before any more miscommunication happens? I think something is getting lost in translation here.Â
0 nvh Posted October 2, 2021 Author Posted October 2, 2021 On 8/28/2021 at 11:08 AM, Cheshire said: That's not the information I gathered from the first post at all and quite different.  Could you provide a clear example of what you want before any more miscommunication happens? I think something is getting lost in translation here. When user signup whit user name “IloveYou” and character name “Warriors” Server auto change “IloveYou” to “iloveyou” and “Warriors” to “warrios” Using ToLower() which file .cs for this feature?
0 nvh Posted October 3, 2021 Author Posted October 3, 2021 tks. I did itif (Name.Any(char.IsUpper)) Â Â Â Â Â Â {Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Name = Name.ToLower() + "" + Id; Â Â Â Â Â Â }
Question
nvh
how to distinguish "Admin", "admin", "aDMin" are the same name?? thanks
9 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now