DWextranet_AccessUserPasswordErrorField4

Version: - string  

Summary

Returns a style value that can be used to hide or show an error message for previously used passwords.

Settings

The value is generated automatically based on the Password reuse fields in the the extended extranet security settings.

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

Remarks

Returns an empty string ("") if a new password has been used before (within a specifc amount time or pasword changes), otherwise "None" is returned. The tag can be used for New passwords prompts.
The value should be used in a style="DISPLAY: " attribute 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_AccessUserPasswordErrorField4")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@DWextranet_AccessUserPasswordErrorField4-->

Check if string has a value

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