NSWDPC\Passwords\DictionaryWordRule
Checks if a password is a dictionary word
- Author: James <james.ellis@dpc.nsw.gov.au>
Synopsis
class DictionaryWordRule
extends AbstractPasswordRule
{
- // members
- private static string $locale = "en_AU";
- private static string $template_var = "DICTIONARY_WORD_RULE";
- private static string $template_value = "Your password cannot be a dictionary word";
Hierarchy
Members
private
- $locale
- $template_value
- $template_var
Methods
public
- canRun() — By default, allow rule checks can run
- check() — Perform password check using Enchant Note that this is case insensitive so "English" will fail but "english" will pass