Skip to content

Commit

Permalink
Update login query
Browse files Browse the repository at this point in the history
  • Loading branch information
Dexter committed Mar 27, 2024
1 parent 7ed50b5 commit 6ad960c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/routes/auth/GetPassword.gql
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 6ad960c

Please sign in to comment.