Share via


UserManager<TUser, TKey>.VerifyChangePhoneNumberTokenAsync Method

Verifies whether the code is valid for a specific user and for a specific phone number.

Namespace:  Microsoft.AspNet.Identity
Assembly:  Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)

Syntax

public virtual Task<bool> VerifyChangePhoneNumberTokenAsync(
    TKey userId,
    string token,
    string phoneNumber
)

Parameters

  • userId
    Type: TKey
    The user ID.

Return Value

Type: System.Threading.Tasks.Task<Boolean>
The task representing the asynchronous operation.

See Also

Reference

UserManager<TUser, TKey> Class

Microsoft.AspNet.Identity Namespace

Other Resources

ASP.NET Identity