UserManager<TUser>.VerifyPasswordAsync 方法

定义

返回一个 PasswordVerificationResult ,指示密码哈希比较的结果。

protected:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Identity::PasswordVerificationResult> ^ VerifyPasswordAsync(Microsoft::AspNetCore::Identity::IUserPasswordStore<TUser> ^ store, TUser user, System::String ^ password);
protected virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.PasswordVerificationResult> VerifyPasswordAsync (Microsoft.AspNetCore.Identity.IUserPasswordStore<TUser> store, TUser user, string password);
abstract member VerifyPasswordAsync : Microsoft.AspNetCore.Identity.IUserPasswordStore<'User (requires 'User : null)> * 'User * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.PasswordVerificationResult>
override this.VerifyPasswordAsync : Microsoft.AspNetCore.Identity.IUserPasswordStore<'User (requires 'User : null)> * 'User * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.PasswordVerificationResult>
Protected Overridable Function VerifyPasswordAsync (store As IUserPasswordStore(Of TUser), user As TUser, password As String) As Task(Of PasswordVerificationResult)

参数

store
IUserPasswordStore<TUser>

包含用户密码的存储区。

user
TUser

应验证其密码的用户。

password
String

要验证的密码。

返回

表示 Task 异步操作的 ,包含 PasswordVerificationResult 操作的 。

适用于