📜  重置密码 firebase auth - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:01.985000             🧑  作者: Mango

代码示例3
It sounds like you're looking to send a password reset email. See this example from the Firebase documentation:

FirebaseAuth.getInstance().sendPasswordResetEmail("user@example.com")
    .addOnCompleteListener(new OnCompleteListener() {
        @Override
        public void onComplete(@NonNull Task task) {
            if (task.isSuccessful()) {
                Log.d(TAG, "Email sent.");
            }
        }
    });