[Fixed]-Django django.contrib.auth.views.password_reset_confirm error during template rendering

1πŸ‘

βœ…

It looks like you have an invalid AUTH_PASSWORD_VALIDATORS setting. It should be a list of dictionaries. The error message suggests you have a list of strings instead.

The example given in the docs is:

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',
    },
]
πŸ‘€Alasdair

Leave a comment