Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use post method for logout #558

Merged
merged 5 commits into from
Dec 5, 2024

Conversation

elmq0022
Copy link
Contributor

Fixes #557

The anchor tags are html get request by default. The logout view requires a post method to logout.

I wrapped the link in a small form, added the crsf token and put the logout text in a button.

The css should be adjusted though so the button doesn't have an outline ... ☹️

@elmq0022
Copy link
Contributor Author

Well border: none will probably clean up the css. That or outline: none. Seems like that second one isn't recommended for access though.

@elmq0022
Copy link
Contributor Author

elmq0022 commented Dec 4, 2024

Example of the odd CSS when switching this to a button.

image

vs

image

@JoeJasinski
Copy link
Contributor

Nice!

@elmq0022
Copy link
Contributor Author

elmq0022 commented Dec 5, 2024

CSS fixed!

@elmq0022 elmq0022 merged commit fb7bd83 into chicagopython:main Dec 5, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Logout Url Not Working
3 participants