Skip to content
Back

[solved] account.create gives admin label by default

  • 0
  • Accounts
  • Web
bonndubz
22 Nov, 2023, 15:33

ill show you now

TL;DR
Title: Solution: account.create gives admin label by default - User reports that the account.create function is assigning the admin label by default - User marks the issue as solved without providing any explanation - User confirms that the issue has stopped without making any changes - User expresses confusion about why or how the issue occurred - Another user notices a possible error in the code where userId and userid are used interchangeably - User believes that the issue might be due to the fact that response.name.toLowerCase() is the ID of the user and userid is already included - User mentions making changes to the code and now receives an error about '
bonndubz
22 Nov, 2023, 15:37

@Steven this is the code right here

bonndubz
22 Nov, 2023, 15:37

and this is what happens when i press the button

bonndubz
22 Nov, 2023, 15:39

well now for some reason the admin label isnt added

bonndubz
22 Nov, 2023, 15:39

hm.

bonndubz
22 Nov, 2023, 15:39

thats interesting

bonndubz
22 Nov, 2023, 15:40

though now what im getting is undefined for some reason

bonndubz
22 Nov, 2023, 15:41

and the fact that it actually got a response bugs me because it means that it actually accepted the request but the response is not working

bonndubz
22 Nov, 2023, 15:46

i have changed some stuff right here but now appwrite says that im missing 'userid'

bonndubz
22 Nov, 2023, 15:46
bonndubz
22 Nov, 2023, 15:50

and userid is already there

bonndubz
22 Nov, 2023, 15:50

response.name.toLowerCase() is the ID of the user

bonndubz
22 Nov, 2023, 15:55

noobie error

ideclon
22 Nov, 2023, 15:55

You’re setting userId in your createDocument(), but it looks like the field you’re trying to set it actually called userid

bonndubz
22 Nov, 2023, 15:55

yes

bonndubz
22 Nov, 2023, 15:55

just saw

bonndubz
22 Nov, 2023, 15:55

tho the label stuff

bonndubz
22 Nov, 2023, 15:55

thats something i will never understand

bonndubz
22 Nov, 2023, 15:55

why or how it happened

bonndubz
22 Nov, 2023, 15:55

because i changed nothing

ideclon
22 Nov, 2023, 15:55

It’s stopped now?

bonndubz
22 Nov, 2023, 15:55

yup

bonndubz
22 Nov, 2023, 15:56

no idea

bonndubz
22 Nov, 2023, 15:56

ill mark it as fixed

bonndubz
22 Nov, 2023, 15:56

[solved] account.create gives admin label by default

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