checks if the new password matches a previously used password when hashed with the same salt

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

Syntax

C#
public bool IsPasswordPreviouslyUsed(
	int userId,
	string password
)
Visual Basic
Public Function IsPasswordPreviouslyUsed ( 
	userId As Integer,
	password As String
) As Boolean

Parameters

userId
Type: System..::..Int32
paramuserIdM:DotNetNuke.Entities.Users.Membership.MembershipPasswordController.IsPasswordPreviouslyUsed(System.Int32,System.String)
password
Type: System..::..String
users entered new password

Return Value

true if previously used, false otherwise

See Also