django registration redux clean clean password -


i using django 1.8.2 , python 2.7

i novice in django. using django registration redux authenticate users. want manually define clean method on password field ensure password atleast 6 character long, , contains @ least 1 numeric n 1 special character. how that? shall define form inheriting registrationform class? or easier change in registrationform itself?

it better override behavior instead of modifying source code subclass registrationform. recommended in comments :

form registering new user account. validates requested username not in use, , requires password entered twice catch typos. subclasses should feel free add additional validation need, should avoid defining save() method -- actual saving of collected user data delegated active registration backend.


Comments

Popular posts from this blog

java - HTTP Status 500 - An exception occurred processing JSP page /second.jsp at line 15 -

SQL Server - MyCTE query based on 24 hour period (next day) -

php - Using str_replace to translate a MySQL Table in html -