Ticket #10777: 20090410_auth_form_reset_pwd.diff

File 20090410_auth_form_reset_pwd.diff, 569 bytes (added by Robert Lujo, 16 years ago)

Place where fix the problem

  • django/contrib/auth/forms.py

     
    9696    def get_user(self):
    9797        return self.user_cache
    9898
     99    def is_valid(self):
     100        ret = super(AuthenticationForm, self).is_valid()
     101        # TODO: delete self.fields["password"] value for security reasons
     102        return ret
     103
    99104class PasswordResetForm(forms.Form):
    100105    email = forms.EmailField(label=_("E-mail"), max_length=75)
    101106
Back to Top