Tries to validate a verification code sent after a user is registered in a portal configured to use a verified registration.

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

Syntax

C#
public static void VerifyUser(
	string verificationCode
)
Visual Basic
Public Shared Sub VerifyUser ( 
	verificationCode As String
)

Parameters

verificationCode
Type: System..::..String
The verification code.

Return Value

An null string if the verification code has been validated and the user has been approved. An error message otherwise.

Exceptions

ExceptionCondition
DotNetNuke.Entities.Users..::..UserAlreadyVerifiedExceptionThrown when provided verification code has been already used.
DotNetNuke.Entities.Users..::..InvalidVerificationCodeExceptionThrown when the provided verification code is invalid.
DotNetNuke.Entities.Users..::..UserDoesNotExistExceptionThrown when the user does not exist.

See Also