diff --git a/src/routes/auth/GetPassword.gql b/src/routes/auth/GetPassword.gql index 55cc894..6f6e9ed 100644 --- a/src/routes/auth/GetPassword.gql +++ b/src/routes/auth/GetPassword.gql @@ -1,5 +1,10 @@ query GetPassword($name: String!) { - auth_person(where: {_or: [{name: {_ilike: $name}}, {email: {_eq: $name}}], roles: {role: {_eq: "member"}}}) { + auth_person( + where: { + _or: [{ name: { _ilike: $name } }, { email: { _eq: $name } }] + roles: { role: { _in: ["member", "login"] } } + } + ) { email name id