turkle icon indicating copy to clipboard operation
turkle copied to clipboard

Allow administrators to set password requirements

Open hltcoe-bot opened this issue 4 years ago • 1 comments

Sites on the internet will need password length and character rules. Right now, I can set the password to a single character and Turkle doesn't complain. There is probably a plugin that does this.

Poster: Cash Costello id: 201

hltcoe-bot avatar Aug 07 '20 15:08 hltcoe-bot

I noticed this seems to be built into Django 3 so an argument for upgrading

cash avatar Mar 31 '21 18:03 cash

Closing this as Django supports password requirements now. Here is an example from their documentation:

AUTH_PASSWORD_VALIDATORS = [
    {
        'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
    },
    {
        'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
        'OPTIONS': {
            'min_length': 9,
        }
    },
    {
        'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
    },
    {
        'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
    },
]

cash avatar Dec 01 '22 15:12 cash