Skip to content
Back

[REST] attach multiple query strings dont working ...

  • 0
  • Web
  • Tools
  • Accounts
  • Cloud
  • Self Hosted
Waldemar
28 Sep, 2023, 01:27

I'm trying to compare email and password, however, it's not working... as below, only 1 query parameter works. https://cloud.appwrite.io/v1/users?queries[]=equal("email", "example@email.com")&queries[]=equal("password", "password")

Am I doing something wrong?

TL;DR
The user is having trouble attaching multiple query strings in a REST API call. They are trying to compare email and password, but only one query parameter is working. The user is looking for clarification on whether they are doing something wrong. The solution suggested is to follow the example provided in the create email session API, where the hash is obtained and compared. It is also mentioned that querying on password won't work because it is a hashed data, not a simple string. No specific solution is provided for attaching multiple query strings.
Waldemar
28 Sep, 2023, 01:28

[REST] attach multiple query strings dont working ...

Drake
28 Sep, 2023, 01:53

That won't work because password is a hashed data and not a simple string

Drake
28 Sep, 2023, 02:08
Waldemar
28 Sep, 2023, 02:31

Even if I compare it with the hash?

Drake
28 Sep, 2023, 02:39

Don't think so

Waldemar
28 Sep, 2023, 02:39

so the solution is to get the hash and compare incode ?

Drake
28 Sep, 2023, 02:47

You'd have to do the exact same thing our create email session API does

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more