#28256: Django `update_last_login` always providing lastest time. not last login
time
------------------------------+--------------------------------------
Reporter: Vinay Kumar | Owner: nobody
Type: Bug | Status: closed
Component: contrib.auth | Version: 1.11
Severity: Normal | Resolution: invalid
Keywords: last_login | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
------------------------------+--------------------------------------
Changes (by Marten Kenbeek):
* status: new => closed
* resolution: => invalid
Comment:
`last_login` refers to the time of the last successful login action, not
to the time of the last user session. As mentioned on your
[https://stackoverflow.com/questions/44265608/django-update-last-login-
always-providing-lastest-time-not-last-login-time StackOverflow question],
if you check the value for the current user, that will be the start time
of the current session, not the start time of the previous session.
--
Ticket URL: <https://code.djangoproject.com/ticket/28256#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" 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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.d5c29509a1af99c2a1a487653dd28b89%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.