mirror of
https://github.com/healthchecks/healthchecks.git
synced 2026-04-25 23:15:49 +03:00
[PR #14] [MERGED] redirect already logged in user #861
Labels
No labels
bug
bug
bug
feature
good-first-issue
new integration
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/healthchecks#861
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/healthchecks/healthchecks/pull/14
Author: @diwu1989
Created: 11/28/2015
Status: ✅ Merged
Merged: 12/2/2015
Merged by: @cuu508
Base:
master← Head:loggedIn📝 Commits (1)
427a042redirect already logged in user📊 Changes
3 files changed (+23 additions, -7 deletions)
View changed files
📝
hc/accounts/tests/test_check_token.py(+17 -6)📝
hc/accounts/views.py(+4 -0)📝
hc/front/views.py(+2 -1)📄 Description
If the user is already logged in, and then click the login email again, they get hit with this:

The reason is that their login token has been reset already, but they do have a valid session at the moment.
Correct behavior is to redirect the user to the checks screen instead.
and a small perf change that I saw while reading through the code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.