简体   繁体   中英

Validate user registration with firebase

I am new to Firebase. I have a custom subscription page with email and password.

In the webApp I am working on, I would like to send an activation email every time someone subscribes. However, I would like this email to be sent to an administrator instead of being sent to the user itself.

I do not want the users to activate their accounts, but an administrator, who does not know anything about programming.

Is there an easy way with firebase to do such a thing?

Thank you!

PS: I am using firebase with ReactJS, if this helps :-)

Firebase has an example of sending emails through Gmail. Please see the link. You can store and read the administrator email address in the firebase db. In the email to the administrator, you direct the admin to click the link to your webapp to activate the user.

https://github.com/firebase/functions-samples/blob/master/quickstarts/email-users/functions/index.js

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM