The IsConfirmed() method returns a value that indicates whether the specified user has been confirmed.
Parameter | Type | Description |
---|---|---|
userName | String | The user name |
Type | Description |
---|---|
Boolean | true if the user is confirmed, otherwise false |
Any access to the WebSecurity object throws an InvalidOperationException if:
The IsConfirmed() method checks the user account identified by the userName parameter.
If the membership has been confirmed (the user has confirmed the account by clicking an email link), the method returns true.
If a registration has not been confirmed, the user cannot log in.
Name | Value |
---|---|
Namespace | WebMatrix.WebData |
Assembly | WebMatrix.WebData.dll |