mirror of
https://github.com/healthchecks/healthchecks.git
synced 2026-04-25 23:15:49 +03:00
[PR #20] [MERGED] check token need to handle invalid user & invalid token correctly #863
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#863
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/20
Author: @diwu1989
Created: 12/19/2015
Status: ✅ Merged
Merged: 12/26/2015
Merged by: @cuu508
Base:
master← Head:badToken📝 Commits (1)
2ebad09check token redirect to login on bad token📊 Changes
3 files changed (+21 additions, -7 deletions)
View changed files
📝
hc/accounts/tests/test_check_token.py(+12 -4)📝
hc/accounts/tests/test_login.py(+5 -0)📝
hc/accounts/views.py(+4 -3)📄 Description
Try going to this URL:
https://healthchecks.io/accounts/check_token/invalid_user/invalid_token/
You'll get hit with the login page, and u can enter email all day long and it wouldn't work
Correct solution is to:
bad_linksentinel in the cookie for the login page to render the special invalid login messagebad_linksentinel from sessionwith unit tests included
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.