Sdílet prostřednictvím


UserManager<TUser>.VerifyTwoFactorTokenAsync Metoda

Definice

Ověří zadané dvoufaktorové ověřování token proti user.

public:
 virtual System::Threading::Tasks::Task<bool> ^ VerifyTwoFactorTokenAsync(TUser user, System::String ^ tokenProvider, System::String ^ token);
public virtual System.Threading.Tasks.Task<bool> VerifyTwoFactorTokenAsync (TUser user, string tokenProvider, string token);
abstract member VerifyTwoFactorTokenAsync : 'User * string * string -> System.Threading.Tasks.Task<bool>
override this.VerifyTwoFactorTokenAsync : 'User * string * string -> System.Threading.Tasks.Task<bool>
Public Overridable Function VerifyTwoFactorTokenAsync (user As TUser, tokenProvider As String, token As String) As Task(Of Boolean)

Parametry

user
TUser

Uživatel, pro který má token být.

tokenProvider
String

Zprostředkovatel, který ověří token.

token
String

Token, který chcete ověřit.

Návraty

Hodnota Task , která představuje výsledek asynchronní operace, true, pokud je token platný, v opačném případě false.

Platí pro