Changes between Initial Version and Version 1 of Ticket #10265
- Timestamp:
- Feb 14, 2009, 2:50:03 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #10265 – Description
initial v1 2 2 3 3 the difference is that a User just created has a last_login with microseconds set, but when reloaded from the db it does not and the token generator uses unicode(user.last_login) in the hash 4 4 {{{ 5 5 >>> from django.contrib.auth.models import User 6 6 >>> u1 = User.objects.create_user("username","user@email.com","password") … … 17 17 >>> unicode(u2.last_login) 18 18 u'2009-02-14 15:47:20' 19 19 }}} 20 20 (as an aside, I don't think that a user should be created with a last login of now. 21 21 a new user has never logged in.)