EmailTokenProvider<TUser> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
TokenProvider that generates tokens from the user's security stamp and notifies a user via email.
generic <typename TUser>
where TUser : classpublic ref class EmailTokenProvider : Microsoft::AspNetCore::Identity::TotpSecurityStampBasedTokenProvider<TUser>
public class EmailTokenProvider<TUser> : Microsoft.AspNetCore.Identity.TotpSecurityStampBasedTokenProvider<TUser> where TUser : class
type EmailTokenProvider<'User (requires 'User : null)> = class
inherit TotpSecurityStampBasedTokenProvider<'User (requires 'User : null)>
Public Class EmailTokenProvider(Of TUser)
Inherits TotpSecurityStampBasedTokenProvider(Of TUser)
Type Parameters
- TUser
The type used to represent a user.
- Inheritance
Constructors
EmailTokenProvider<TUser>() |
Methods
CanGenerateTwoFactorTokenAsync(UserManager<TUser>, TUser) |
Checks if a two-factor authentication token can be generated for the specified |
GenerateAsync(String, UserManager<TUser>, TUser) |
Generates a token for the specified |
GetUserModifierAsync(String, UserManager<TUser>, TUser) |
Returns the a value for the user used as entropy in the generated token. |
ValidateAsync(String, String, UserManager<TUser>, TUser) |
Returns a flag indicating whether the specified |