fix: force lowercase for email on local auth
This commit is contained in:
1 parent
5295e413be
commit
aa96e97028
4 files changed
+16
-2
No files matched your search
@@ -15,7 +15,7 @@ module.exports = {
|
||||
}, async (uEmail, uPassword, done) => {
|
||||
try {
|
||||
const user = await WIKI.models.users.query().findOne({
|
||||
email: uEmail,
|
||||
email: uEmail.toLowerCase(),
|
||||
providerKey: 'local'
|
||||
})
|
||||
if (user) {
|
||||
|
||||
Reference in new issue
Block a user