Back

[SOLVED] List users with password query

  • 0
  • Users
safwan
30 Mar, 2023, 10:54

you won't be able to create multiple accounts with the same email

TL;DR
The user is discussing the issue of listing users with a password query and the problem of creating anonymous sessions without exposing data. They mention the use of random emails and the limitations of using email/password authentication. Unfortunately, no solution is found for the problem.
whataboutno13
30 Mar, 2023, 10:54

Really?

safwan
30 Mar, 2023, 10:54

yep

whataboutno13
30 Mar, 2023, 10:54

Shit

safwan
30 Mar, 2023, 10:55

emails are unique. So if you use something like test@example.com for one user, you can't use it for a new account, until you delete the existing test@example.com account

whataboutno13
30 Mar, 2023, 10:56

Damn, that leaves me again with no solution for this problem 😬

safwan
30 Mar, 2023, 10:57

i dont know if this helps

safwan
30 Mar, 2023, 10:57

but have you looked at anonymous sessions?

safwan
30 Mar, 2023, 10:57

no email/password or anything

safwan
30 Mar, 2023, 10:58

just a session

whataboutno13
30 Mar, 2023, 10:59

Yes, but then I cannot use document security for data access correct?

safwan
30 Mar, 2023, 10:59

ah yeah

safwan
30 Mar, 2023, 10:59

that's true

whataboutno13
30 Mar, 2023, 11:00

Cannot everyone just create a anonymous session and therefore all the data is exposed if i allow access to all users for a collection?

safwan
30 Mar, 2023, 11:01

pretty much

safwan
30 Mar, 2023, 11:01

i dont think there's a way yet to do this in appwrite

safwan
30 Mar, 2023, 11:02

an email/phone is required for creating an account

whataboutno13
30 Mar, 2023, 11:04

But whats the usecase of a anonymous session then? If just anyone can create one, whats the point? πŸ˜…

whataboutno13
30 Mar, 2023, 11:10

I could use some part of the send secret as part of the email and the other part as password. Still problematic with sending that plaintext via sms but I do not think some other baas provider than appwrite has a password only authentication method

safwan
30 Mar, 2023, 11:11

i haven't read much about it, but it helps in separating active users from casual lookers i think.

safwan
30 Mar, 2023, 11:12

look i mean technically, you don't need real emails if you're not going to verify them in appwrite

safwan
30 Mar, 2023, 11:12

if you want, you could create random emails, and use them

whataboutno13
30 Mar, 2023, 11:13

exaclty

whataboutno13
30 Mar, 2023, 11:13

Thank you @safwan for your time! πŸ™‚ Really was a pleasure discussing matters πŸ‘

whataboutno13
30 Mar, 2023, 11:14

[SOLVED] List users with password query

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