Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
fix(users): toLowerCase at email in local strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
itelo committed Oct 6, 2016
1 parent 4d1a92f commit b116fe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/users/server/config/strategies/local.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = function () {
$or: [{
username: usernameOrEmail.toLowerCase()
}, {
email: usernameOrEmail
email: usernameOrEmail.toLowerCase()
}]
}, function (err, user) {
if (err) {
Expand Down

0 comments on commit b116fe6

Please sign in to comment.