Firebase email-verification with temporary password

Unk*_*ncy 1 javascript email-verification firebase firebase-authentication

I have an React app where sport teams can sign up. A team has a coach, and that coach should be able to invite members of his team via e-mail.

I already setup the creating of team members by the coach through a form where a temporary password is set

onSubmit of the form I call

    auth.createUserWithEmailAndPassword(data['email'],
      generateRandomPassword()) 
    .then(user => user.sendEmailVerification())
Run Code Online (Sandbox Code Playgroud)

This is all well and working like a charm, but I cannot seem to figure out a hack that enables me to send the password with the email since the editing of the email template is greyed out in "Firebase Console".

Can anyone figure out a way to resolve this other than the coach informing each members of their respective password?

Fra*_*len 5

相反,我会发送一封密码重置电子邮件,其中包含允许收件人重置密码的令牌。这意味着您可以放心地假设登录的用户已收到此电子邮件,并且这验证了他们的电子邮件地址。所以你可以使用Admin SDK来设置它们的emailVerified属性