DWextranet_AccessUserPasswordErrorField2

Version: - string  

Summary

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

Settings

The value is generated automatically based on the Complexity field in the the extended extranet security settings.
(Management settings - Control Panel - Modules - User Management - Password security - Extranet - Complexity).

Remarks

Returns an empty string ("") if a new password is too weak (does not contain both letters and numbers), otherwise "None" is returned. The tag can be used for New password prompts.
The value should be used in a style="DISPLAY: " attribute like this:

<div id="DWextranet_ErrorCode2" Style="display:@GetValue("DWextranet_AccessUserPasswordErrorField2");">The Password requires both numbers and letters.</div>

Examples

Outputting the template tag

@GetString("DWextranet_AccessUserPasswordErrorField2")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@DWextranet_AccessUserPasswordErrorField2-->

Check if string has a value

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