aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/user
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/user')
-rw-r--r--server/models/user/user.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/user/user.ts b/server/models/user/user.ts
index 4ad76e5bc..e7bf22806 100644
--- a/server/models/user/user.ts
+++ b/server/models/user/user.ts
@@ -623,7 +623,7 @@ export class UserModel extends Model<Partial<AttributesOnly<UserModel>>> {
623 const query = { 623 const query = {
624 where: { 624 where: {
625 [Op.or]: [ 625 [Op.or]: [
626 where(fn('lower', col('username')), fn('lower', username)), 626 where(fn('lower', col('username')), '=', fn('lower', username)),
627 627
628 { email } 628 { email }
629 ] 629 ]