Hi I was wondering how to make usernames unique or atleast a way to not make it possible to change your username through the API but only the ones with a token so I can do the usernames myself.
What do you mean by username
? Is it an attribute of a collection you've created?
No the Authentication side of appwrite
That's just the name
field and not username
. I don't think you can prevent the names from being changed in auth. You can, however, create a collection for usernames and set the appropriate permissions and create a function to create the usernames. So essentially, you'll not use the name attribute in auth at all.
Recommended threads
- Different appwrite IDs are getting expos...
File_URL_FORMAT= https://cloud.appwrite.io/v1/storage/buckets/[BUCKET_ID]/files/[FILE_ID]/preview?project=[PROJECT_ID] I'm trying to access files in my web app...
- Invalid document structure: missing requ...
I just pick up my code that's working a week ago, and now I got this error: ``` code: 400, type: 'document_invalid_structure', response: { message: 'Inv...
- custom domain with CloudFlare
Hi all, it seems that CloudFlare has blocked cross-domain CNAME link which made my app hostname which is in CloudFlare, unable to create a CNAME pointing to clo...