diff options
Diffstat (limited to 'server/models/user/user.ts')
-rw-r--r-- | server/models/user/user.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/models/user/user.ts b/server/models/user/user.ts index e7bf22806..ad8ce08cb 100644 --- a/server/models/user/user.ts +++ b/server/models/user/user.ts | |||
@@ -48,14 +48,14 @@ import { | |||
48 | isUserEmailVerifiedValid, | 48 | isUserEmailVerifiedValid, |
49 | isUserNoModal, | 49 | isUserNoModal, |
50 | isUserNSFWPolicyValid, | 50 | isUserNSFWPolicyValid, |
51 | isUserP2PEnabledValid, | ||
51 | isUserPasswordValid, | 52 | isUserPasswordValid, |
52 | isUserRoleValid, | 53 | isUserRoleValid, |
53 | isUserUsernameValid, | 54 | isUserUsernameValid, |
54 | isUserVideoLanguages, | 55 | isUserVideoLanguages, |
55 | isUserVideoQuotaDailyValid, | 56 | isUserVideoQuotaDailyValid, |
56 | isUserVideoQuotaValid, | 57 | isUserVideoQuotaValid, |
57 | isUserVideosHistoryEnabledValid, | 58 | isUserVideosHistoryEnabledValid |
58 | isUserP2PEnabledValid | ||
59 | } from '../../helpers/custom-validators/users' | 59 | } from '../../helpers/custom-validators/users' |
60 | import { comparePassword, cryptPassword } from '../../helpers/peertube-crypto' | 60 | import { comparePassword, cryptPassword } from '../../helpers/peertube-crypto' |
61 | import { DEFAULT_USER_THEME_NAME, NSFW_POLICY_TYPES } from '../../initializers/constants' | 61 | import { DEFAULT_USER_THEME_NAME, NSFW_POLICY_TYPES } from '../../initializers/constants' |
@@ -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) as any), |
627 | 627 | ||
628 | { email } | 628 | { email } |
629 | ] | 629 | ] |