I found what I think is a bug in Django 1.6.6
Test Case
1) Create new user
2) Do not login and try to reset password using password_reset

You will see the following error
AttributeError at /password_reset/

'NoneType' object has no attribute 'replace'

Request Method:     POST
Request URL:     http://localhost:8000/password_reset/
Django Version:     1.6.6
Exception Type:     AttributeError
Exception Value:     

'NoneType' object has no attribute 'replace'

Ultimately it comes to this in ..django/contrib/auth/tokens.py


        # Ensure results are consistent across DB backends
        login_timestamp = user.last_login.replace(microsecond=0, 
tzinfo=None)

This quite obviously fails if user.last_login is None.

Suggestions?

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c8612c39-049f-44ca-9ebe-4c27f2e3e895%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to