Assambra / Free-MMORPG

MIT License
14 stars 7 forks source link

Forgot password dont match if we request for "paul" and the database value are "Paul" or "PAUL" #10

Closed Assambra closed 1 year ago

Assambra commented 1 year ago

if we request for username "paul" and in the database the entry is "Paul" or PAUL it does not match.

I requestet some feature for it https://github.com/youngmonkeys/ezydata/issues/27

Assambra commented 1 year ago

Case insensitive searching in mongo db works now. Keep in mind to create the collection first with the following parameters. It have to be writed down in the readme.

mongosh: db.createCollection("account", { collation: { locale: 'en_US', strength: 2 } } ) db.account.createIndex( { username: 1 } )