DWExtranetAccountBlocked

Version: - boolean  

Summary

Returns True if the user is blocked due to e.g. too many login attempts (when Password security - Extranet is enabled in Management settings - Control Panel - Modules - User Management).

Settings

The value is generated automatically.

Remarks

Returns blank if user is not blocked.

Examples

Outputting the template tag

@GetBoolean("DWExtranetAccountBlocked")

Check if tag has a value

@if(!bool.IsNullOrWhiteSpace(GetBoolean("DWExtranetAccountBlocked"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ bool storedTag = GetBoolean("DWExtranetAccountBlocked"); }

Outputting the template tag

<!--@DWExtranetAccountBlocked-->

Check if boolean has a value

<!--@If Defined(@DWExtranetAccountBlocked)--> Let's output this tag here: <strong><!--@DWExtranetAccountBlocked--></strong> <!--@EndIf(@DWExtranetAccountBlocked)-->