Easy Tutorial
❮ Prop Webcontrol Radiobuttonlist Repeatdirection Prop Webcontrol Standard Backcolor ❯

WebSecurity - ConfirmAccount()


Definition

The ConfirmAccount() method confirms and activates an account using an account confirmation token.


C# and VB Syntax


Examples

Example C

Example VB


Parameters

Parameter Type Description
accountConfirmationToken String Account confirmation token

Return Value

Type Description
Boolean Returns true if the account is confirmed, otherwise returns false.

Errors and Exceptions

Under the following conditions, any access to the WebSecurity object will throw an InvalidOperationException:


Remarks

The account confirmation token can be created by the CreateAccount(), CreateUserAndAccount(), or GeneratePasswordResetToken() methods.

The general procedure is to send the token to the user in an email, requesting the user to verify their identity (via a link to a confirmation page).


Technical Data

Name Value
Namespace WebMatrix.WebData
Assembly WebMatrix.WebData.dll

❮ Prop Webcontrol Radiobuttonlist Repeatdirection Prop Webcontrol Standard Backcolor ❯