EmailTokenProvider<TUser>.GetUserModifierAsync Method
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.
Returns the a value for the user used as entropy in the generated token.
public:
override System::Threading::Tasks::Task<System::String ^> ^ GetUserModifierAsync(System::String ^ purpose, Microsoft::AspNetCore::Identity::UserManager<TUser> ^ manager, TUser user);
public override System.Threading.Tasks.Task<string> GetUserModifierAsync (string purpose, Microsoft.AspNetCore.Identity.UserManager<TUser> manager, TUser user);
override this.GetUserModifierAsync : string * Microsoft.AspNetCore.Identity.UserManager<'User (requires 'User : null)> * 'User -> System.Threading.Tasks.Task<string>
Public Overrides Function GetUserModifierAsync (purpose As String, manager As UserManager(Of TUser), user As TUser) As Task(Of String)
Parameters
- purpose
- String
The purpose of the two-factor authentication token.
- manager
- UserManager<TUser>
The UserManager<TUser> to retrieve the user
from.
- user
- TUser
The TUser
to check for the possibility of generating a two-factor authentication token.
Returns
A string suitable for use as entropy in token generation.