Correctly handle login with mixed case email

This commit is contained in:
Chi Vinh Le
2017-06-21 20:34:33 +07:00
parent 91fa7b2d8d
commit 6628e6d08d
+3
View File
@@ -340,6 +340,9 @@ passport.use(new LocalStrategy({
passReqToCallback: true
}, async (req, email, password, done) => {
// Normalize email
email = email.toLowerCase();
// We need to check if this request has a recaptcha on it at all, if it does,
// we must verify it first. If verification fails, we fail the request early.
// We can only do this obviously when recaptcha is enabled.