Allow login using e-mail address
This commit is contained in:
parent
0ac43ce0e5
commit
0ebca23587
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user