Back

How to whitelist specific emails for registration

  • 0
  • Self Hosted
nisoom
13 Nov, 2024, 18:38

using appwrite 1.6.0, want to configure _APP_CONSOLE_WHITELIST_EMAILS. Do i add a comma separated list values? dont want to disable _APP_CONSOLE_WHITELIST_ROOT as the service is on the web

Example - _APP_CONSOLE_WHITELIST_EMAILS=stuff@stuff.com,stuff2@stuff.com

TL;DR
Developers are trying to whitelist specific emails for registration in appwrite version 1.6.0. They should add a comma-separated list of email addresses to the `_APP_CONSOLE_WHITELIST_EMAILS` variable in the .env file. No need to disable `_APP_CONSOLE_WHITELIST_ROOT`. After making changes in the .env file, they should restart the containers using `docker-compose stop` and then `docker compose up -d`.
D5
13 Nov, 2024, 18:39

I think yes, it should be like that 👀

nisoom
13 Nov, 2024, 18:39

but thats not working 😦

nisoom
13 Nov, 2024, 18:40

should i disable root and then add the whitelist emails?

D5
13 Nov, 2024, 18:40

What do you mean by not working?

D5
13 Nov, 2024, 18:40

You can't register those emails?

nisoom
13 Nov, 2024, 18:40

nope

D5
13 Nov, 2024, 18:41

Do you have recreated the containers?

nisoom
13 Nov, 2024, 18:41

when i try to create the user

nisoom
13 Nov, 2024, 18:41

yes i restarted the containers after changing the .env file

nisoom
13 Nov, 2024, 18:42

I recreate the full compose file?

D5
13 Nov, 2024, 18:42

Nope

D5
13 Nov, 2024, 18:43

Run the docker compose up -d command

nisoom
13 Nov, 2024, 18:43

After changing the .env file

TypeScript
docker-compose stop
docker-compose up -d --remove-orphans
nisoom
13 Nov, 2024, 18:43

this is what i did

D5
13 Nov, 2024, 18:44

I see. You could try to set that variable to disabled, register the user, then set it back to enabled/empty

nisoom
13 Nov, 2024, 18:44

yes because when i had it enabled, and created users from it i can still loginto those users

nisoom
13 Nov, 2024, 18:45

ill try this?

nisoom
13 Nov, 2024, 18:46

also is there any way i could see all the users created in the container?

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