管理员使用Firebase手动批准/拒绝用户注册 [英] Manual approval / rejection of user registration by admin using Firebase

本文介绍了管理员使用Firebase手动批准/拒绝用户注册的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当前,我正在使用Swift 3.0设计一个应用程序,供最多100个用户的小组使用.

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

用户将通过使用电子邮件ID和密码的简单注册表单进行注册,但是Admin必须手动批准或拒绝用户注册请求.

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).

Firebase是否有可能,我曾尝试阅读Firebase文档,但找不到任何在这种情况下有用的东西.

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.

推荐答案

有可能,当向数据库中添加新用户时,您必须在用户节点名称中添加一个字段,例如默认为approved 0.管理员会收到通知,并检查注册是否被接受,将approved的值更改为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

这篇关于管理员使用Firebase手动批准/拒绝用户注册的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆