Added case-insensitive logins
This commit is contained in:
parent
eadfa7c126
commit
9bf68a499b
|
|
@ -1,4 +1,4 @@
|
|||
Canopy - 0.2.1-INDEV
|
||||
Canopy - 0.2.2-INDEV
|
||||
======
|
||||
|
||||
Canopy - /ˈkæ.nə.pi/:
|
||||
|
|
|
|||
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Reference in a new issue