Allow login using e-mail address

This commit is contained in:
Mark van Renswoude 2018-04-28 15:22:22 +02:00
parent 0ac43ce0e5
commit 0ebca23587

View File

@ -82,7 +82,7 @@ class UserRepository
return new Promise((resolve, reject) =>
{
self.store.findOne({ username: username, active: true }, (err, doc) =>
self.store.findOne({ $or: [{ username: username }, { email: username }], active: true }, (err, doc) =>
{
if (err)
{