IUserPasswordStore<TUser>.HasPasswordAsync(TUser, CancellationToken) IUserPasswordStore<TUser>.HasPasswordAsync(TUser, CancellationToken) Method

Definition

Gets a flag indicating whether the specified user has a password.

public System.Threading.Tasks.Task<bool> HasPasswordAsync (TUser user, System.Threading.CancellationToken cancellationToken);
abstract member HasPasswordAsync : 'User * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>

Parameters

user

The user to return a flag for, indicating whether they have a password or not.

cancellationToken
CancellationToken CancellationToken

The CancellationToken used to propagate notifications that the operation should be canceled.

Returns

The Task that represents the asynchronous operation, returning true if the specified user has a password otherwise false.

Applies to