Wednesday, May 1, 2013

Right way to modify contrib auth package?

Hi,

I'm fairly new to Django, and would like to enforce a minimum password length for my site's users. I'm using James Bennett's registration package and have made the needed changes to forms.py. It works great.

Now I'd like to apply the same password requirements when a user changes or resets their password. This functionality is handled by the contrib.auth package, and at first blush it looks like all I need to do is edit the forms.py there.

But I'm wondering if that's the "correct" way to fold changes into a core package like auth. Is there a better way to do this?

Thanks in advance,

Spork

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment