Rank 3: Container
Is there any possibility to change another account password via the websdk?
I want to have the possibility to change authenticated user passwords on my admin panel, how can i do that?
Votes
0
Replies
8
Participants
Unknown
Messages
9
Rank 3: Container
Is there any possibility to change another account password via the websdk?
I want to have the possibility to change authenticated user passwords on my admin panel, how can i do that?
There isn't any direct way as it can be a serious security problem
But, this could be the way to achieve it.
Create a function that will do so using the user server sdk with API token
https://appwrite.io/docs/server/users?sdk=nodejs-default#usersUpdatePassword
And when the function is being call you can check the user be examine the APPWRITE_FUNCTION_USER_ID variable
https://appwrite.io/docs/functions#functionVariables
And then just check if the user has a specific role or team
Write your Admin panel with the Node SDK
Or
Write Appwrite functions that can ONLY be executed by permissions for Admin users or like, an admin team.
Rank 3: Container
Thanks for the different approaches, im going to implement it
Hi @ianmont , if any more help is not required here, can you mark this post as [SOLVED]?
Rank 3: Container
sure
Rank 3: Container
[SOLVED] Question about Accounts