共用方式為


EmailTokenProvider<TUser>.GetUserModifierAsync 方法

定義

傳回在產生的權杖中做為 entropy 之使用者的值。

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要檢查是否產生雙因素驗證權杖的可能性。

傳回

適合用於產生權杖時做為 entropy 的字串。

適用於