You are adding a feature where administrators can create users from the admin dashboard. After creating a user, you want to send them an email to confirm their account. Which method would you use to generate the email confirmation token?

  • UserManager.GenerateEmailConfirmationTokenAsync()
  • UserManager.GeneratePasswordResetTokenAsync()
  • UserManager.ConfirmEmailAsync()
  • UserManager.GetUserIdAsync()
To generate an email confirmation token for a newly created user, you should use UserManager.GenerateEmailConfirmationTokenAsync(). This token can be sent to the user to confirm their email address.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *