EmailTokenProvider<TUser>.GetUserModifierAsync 方法

定义

返回在生成的令牌中用作熵的用户的值。

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)

参数

purpose
String

双因素身份验证令牌的用途。

manager
UserManager<TUser>

UserManager<TUser>要从中检索 的 user

user
TUser

TUser要检查生成双因素身份验证令牌的可能性。

返回

适合在令牌生成中用作熵的字符串。

适用于