Tries to validate a verification code sent after a user is registered in a portal configured to use a verified registration.
Namespace: DotNetNuke.Entities.UsersAssembly: 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
Exception | Condition |
---|---|
DotNetNuke.Entities.Users..::..UserAlreadyVerifiedException | Thrown when provided verification code has been already used. |
DotNetNuke.Entities.Users..::..InvalidVerificationCodeException | Thrown when the provided verification code is invalid. |
DotNetNuke.Entities.Users..::..UserDoesNotExistException | Thrown when the user does not exist. |