checks if the password reset token being used is valid i.e. has not been used before and is within the the expiration period

Namespace: DotNetNuke.Entities.Users.Membership
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public bool IsValidToken(
	int userId,
	Guid resetToken
)
Visual Basic
Public Function IsValidToken ( 
	userId As Integer,
	resetToken As Guid
) As Boolean

Parameters

userId
Type: System..::..Int32
user attempting to reset their password
resetToken
Type: System..::..Guid
reset token supplied via email link

Return Value

true if value matches (so has not been used before) and is within expiration window

See Also