mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-09 16:28:19 +00:00
Add isEmailVerified to findUserByEmail
This commit is contained in:
@@ -22,7 +22,9 @@ export const userDALFactory = (db: TDbClient) => {
|
|||||||
(tx || db)(TableName.Users).whereRaw('lower("username") = :username', { username: username.toLowerCase() });
|
(tx || db)(TableName.Users).whereRaw('lower("username") = :username', { username: username.toLowerCase() });
|
||||||
|
|
||||||
const findUserByEmail = async (email: string, tx?: Knex) =>
|
const findUserByEmail = async (email: string, tx?: Knex) =>
|
||||||
(tx || db)(TableName.Users).whereRaw('lower("email") = :email', { email: email.toLowerCase() });
|
(tx || db)(TableName.Users).whereRaw('lower("email") = :email', { email: email.toLowerCase() }).where({
|
||||||
|
isEmailVerified: true
|
||||||
|
});
|
||||||
|
|
||||||
const getUsersByFilter = async ({
|
const getUsersByFilter = async ({
|
||||||
limit,
|
limit,
|
||||||
|
|||||||
Reference in New Issue
Block a user