#[SOLVED] user management by admins

8 messages · Page 1 of 1 (latest)

silent sand
#

Hey I have a question, how should I create an Admin page in flutter where the "admin" users can create/update/block users from appwrite? I used a dart function but there is the problem, that when I use a realtime subscription the other users that are also looking at the admin page don't get the function.FUNC_ID event...

What is the best way to get this to work :X

safe stratus
silent sand
# safe stratus Have a function which fetches all the users, add buttons to each user which runs...

thanks for the reply, I used to do this but the realtime did not react for other users (users that did not the change) so I changed it now so all user changes are saved into a collection and the function reacts on create/update and so I can use the realtime for database 🙂 password changes are still with the function though because I don't wanna save a password plain text into the database 😂

wraith canopy
silent sand
safe stratus
#

Either way, to update you can simply use users.update or whatever it's called, you don't need realtime for passwords either way.

But yes, stuff like name, email etc. should use documents for realtime support.

#

Do you have any more issues? If not mind setting it as SOLVED?

silent sand
#

user management by admins [SOLVED]