title: How can I set a minimum password length when using the built-in Django auth module?
body: <p>I’m implementing authentication in a Django site using <a href="https://docs.djangoproject.com/en/dev/topics/auth/" rel="noreferrer">the built-in auth module</a>, including <a href="https://docs.djangoproject.com/en/dev/topics/auth/#module-django.contrib.auth.forms" rel="noreferrer">the built-in <code>UserCreationForm</code></a>.</p>
  
  <p>I’d like to set a minimum length for passwords. However, I can’t find any documentation on how to do this.</p>
  
  <p>Can I configure the auth module’s <code>User</code> module to require this at the database level? Or should I sub-class the <code>UserCreationForm</code> (I’m actually doing this already for unrelated reasons) and add an extra validator that enforces the password length?</p>