nvh Posted August 27, 2021 Share Posted August 27, 2021 how to distinguish "Admin", "admin", "aDMin" are the same name?? thanks Link to comment Share on other sites More sharing options...
1 Cheshire Posted August 27, 2021 Share 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 Link to comment Share on other sites More sharing options...
0 nvh Posted August 27, 2021 Author Share 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; } } Link to comment Share on other sites More sharing options...
0 Cheshire Posted August 27, 2021 Share 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. Link to comment Share on other sites More sharing options...
0 Tron Posted August 27, 2021 Share Posted August 27, 2021 You can probable store in a DB all character names in upper and compare to that Link to comment Share on other sites More sharing options...
0 Cheshire Posted August 27, 2021 Share 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. Link to comment Share on other sites More sharing options...
0 nvh Posted August 28, 2021 Author Share 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 Link to comment Share on other sites More sharing options...
0 Cheshire Posted August 28, 2021 Share 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. Link to comment Share on other sites More sharing options...
0 nvh Posted October 2, 2021 Author Share 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? Link to comment Share on other sites More sharing options...
0 nvh Posted October 3, 2021 Author Share Posted October 3, 2021 tks. I did itif (Name.Any(char.IsUpper)) { Name = Name.ToLower() + "" + Id; } Link to comment Share on other sites More sharing options...
Question
nvh
how to distinguish "Admin", "admin", "aDMin" are the same name?? thanks
Link to comment
Share on other sites
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