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

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -