Dela via


UserManager<TUser>.VerifyChangePhoneNumberTokenAsync Method

Definition

Returns a flag indicating whether the specified user's phone number change verification token is valid for the given phoneNumber.

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

Parameters

user
TUser

The user to validate the token against.

token
String

The telephone number change token to validate.

phoneNumber
String

The telephone number the token was generated for.

Returns

The Task that represents the asynchronous operation, returning true if the token is valid, otherwise false.

Applies to