DWextranet_AccessUserPasswordErrorFieldData2

Version: - string  

Summary

Returns the minimum number of days that have to pass before a password can be reused.

Settings

The value comes from the After a number of days field  in the the extended extranet security settings.

(Management settings - Control Panel - Modules - User Management - Password security - Extranet - Password reuse).

Remarks

The tag can be used in error messages for New password prompts like this:

<div id="DWextranet_ErrorCode4" Style="display:@GetValue("DWextranet_AccessUserPasswordErrorField4");">The password has been used before and can only be used after @GetValue("DWextranet_AccessUserPasswordErrorFieldData2") times or after @GetValue("DWextranet_AccessUserPasswordErrorFieldData3") days</div>

Examples

Outputting the template tag

@GetString("DWextranet_AccessUserPasswordErrorFieldData2")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("DWextranet_AccessUserPasswordErrorFieldData2"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("DWextranet_AccessUserPasswordErrorFieldData2"); }

Outputting the template tag

<!--@DWextranet_AccessUserPasswordErrorFieldData2-->

Check if string has a value

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