Dela via


UserManager<TUser>.CheckPasswordAsync(TUser, String) Method

Definition

Returns a flag indicating whether the given password is valid for the specified user.

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

Parameters

user
TUser

The user whose password should be validated.

password
String

The password to validate

Returns

The Task that represents the asynchronous operation, containing true if the specified password matches the one store for the user, otherwise false.

Applies to