Closed
Description
Deployment Type
NetBox Cloud
NetBox Version
v4.0.7
Python Version
3.10
Steps to Reproduce
- Configure password validation in the
netbox/netbox/configuration.py
file. Refer below code for the same:
AUTH_PASSWORD_VALIDATORS = [
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
'OPTIONS': {
'min_length': 8,
}
}
]
- Login as a superuser.
- Click "Admin" -> "Authentication" -> "Users"
- Click on "+ Add".
- Fill the details for the user and set password and confirm password as
pass1
. - Click "Create".
- User gets created successfully.
Instead of adding a new user from step 4 to 6, we can also just update the password for an existing users, and set it as pass1
. The result would be the same.
Expected Behavior
User creation or password updation should fail from "Admin" -> "Authentication" -> "Users".
Observed Behavior
User is being created without adhering to the configured password policy.