Manual approval / rejection of user registration by admin using Firebase

心已入冬 提交于 2019-12-25 15:54:06

问题


Currently I'm designing an application in Swift 3.0 that will be used by a small group up to 100 users.

Users will register through a simple registration form using email id and password but Admin will have to approve or reject the user registration request manually.

Workflow I can think of is if a user register, admin will get some notification or email that a new user registration request is there and then when admin approve or rejects the user registration request and user will get a email (that his registration is approved or rejected).

Is it possible with Firebase, I have tried reading Firebase documents but cannot find anything that can be helpful in this case.

Any help or ideas are very much appreciated.


回答1:


it's possible, you have to add a field to your user node name it as example approved by default 0, when a new user is added to your database the admin receive a notification and check the registration if accepted change the value to of approved to 1 else delete the user data



来源:https://stackoverflow.com/questions/44931874/manual-approval-rejection-of-user-registration-by-admin-using-firebase

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!