I am using password reset. As an added security feature, I want to send the confirmation email to the user (so they can take actions if password was reset by others).
What will be the best way to do this?
I am using password reset. As an added security feature, I want to send the confirmation email to the user (so they can take actions if password was reset by others).
What will be the best way to do this?
Could you please tell us in which step you want to send the confirmation email?
I want to send confirmation email, after users provide us new passwords and our server gets response from ResetPassword Admin API.
Just a little more context - we have our own password reset UI (which is what we're using as ConfirmationUrl. I am looking to see if:
* we can embed user id into the confirmationUrl, (so we can send the email from the password reset UI server), or
* listen to an event, say "PASSWORD_CHANGED" and send email to the user.
So you've already sent a password reset email to the user, and you want to send another email to confirm the action after the user resets the password, right?
It is possible to get the user ID from the confirmation URL, you can get the Token in the URL, call GetPlayerIdFromAuthToken to get the PlayFabId, and then send the email.
It is also possible to listen to events, you can create a Rule, choose the event type of player_completed_password_reset, and then add the action to send the email.
This is precisely what I was looking for. Thanks!
Just to add - I used Rule, but the only caveat was that it will not send the email if the user doesn't have any contact email address (though they do have login email - which `SendPasswordLink` was able to use).
3 People are following this question.