mirror of
https://github.com/wassname/talk.git
synced 2026-10-01 12:42:56 +08:00
Correctly handle login with mixed case email
This commit is contained in:
1 parent
91fa7b2d8d
commit
6628e6d08d
1 file changed
+3
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user