Added case-insensitive logins

This commit is contained in:
rainbow napkin 2025-04-26 16:53:51 -04:00
parent eadfa7c126
commit 9bf68a499b
2 changed files with 2 additions and 2 deletions

View file

@ -253,7 +253,7 @@ userSchema.statics.authenticate = async function(user, pass, failLine = "Bad Use
}
//get the user if it exists
const userDB = await this.findOne({ user });
const userDB = await this.findOne({ user: new RegExp(user, 'i')});
//if not scream and shout
if(!userDB){