Dela via


PhoneNumberTokenProvider<TUser>.GetUserModifierAsync Method

Definition

Returns a constant, provider and user unique modifier used for entropy in generated tokens from user information.

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 the token will be generated for.

manager
UserManager<TUser>

The UserManager<TUser> that can be used to retrieve user properties.

user
TUser

The user a token should be generated for.

Returns

The Task that represents the asynchronous operation, containing a constant modifier for the specified user and purpose.

Applies to