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

@ -1,4 +1,4 @@
Canopy - 0.2.1-INDEV Canopy - 0.2.2-INDEV
====== ======
Canopy - /ˈkæ.nə.pi/: Canopy - /ˈkæ.nə.pi/:

View file

@ -253,7 +253,7 @@ userSchema.statics.authenticate = async function(user, pass, failLine = "Bad Use
} }
//get the user if it exists //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 not scream and shout
if(!userDB){ if(!userDB){