Django admin Password WEAK or STRONG message on successful submission of form -
i need display whether password entered while creating new user in django admin strong or weak. please me here suggesting how it. appericiated
class newform(forms.form): email = forms.emailfield() password = forms.charfield(widget=forms.passwordinput()) confirm_password = forms.charfield(widget=forms.passwordinput()) def clean_new_password1(self): password1 = self.cleaned_data.get('password') if len(password1) < 6: "display password weak on submission of form" else: "display password strong on submission of form" return true
i use messaging framework included in django so. i've yet have pleasure tinker sure seems suited job.
although doesn't directly answer question, try out this module seems pretty(ier) me might not you're looking for.
Comments
Post a Comment