Back

Verified Users login

  • 0
  • Users
  • Accounts
  • Flutter
Ansh
3 Oct, 2023, 12:09

so i am building a social media app on appwrite but i only want the user which have verified their email to be able to login. the login function is creating an email session but i am not able to insert any permission so that only verified users are able to create a email session on login. i am using appwrite 9.0.1

TL;DR
The user wants to restrict access to only verified users in their social media app built on Appwrite. Although they have a login function creating an email session, they cannot figure out how to insert permissions to only allow verified users to create an email session. They are using Appwrite 9.0.1. Solution: To ensure only verified users can login, you can modify the login function by checking whether the user's email has been verified before creating an email session. If the email is verified, allow the user to create a session; otherwise, deny access.
Drake
3 Oct, 2023, 13:47

The approach you would take is to restrict access to resources to only verified users rather than restricting login

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