Back

[SOLVED] Check if a user is blocked

  • 0
  • Accounts
  • Web
Hexi
1 Oct, 2023, 13:27

How can I avoid the standard appwrite error? So when someone is blocked it doesn't say: The current user has been blocked. You can unblock the user from the Appwrite console.

TL;DR
The user wants to know how to check if a user is blocked without receiving the standard Appwrite error. The solution is to handle this on the client side by adding an if condition to check if the error corresponds to the user being blocked.
D5
1 Oct, 2023, 13:32

You will need to handle that client side. Basically by adding an if condition that checks if the error corresponds to the user being blocked

Hexi
1 Oct, 2023, 16:29

[SOLVED] Check if a user is blocked

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