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

Fix server error banned login #302

Conversation

geekingfrog
Copy link
Contributor

Fix #253 (and #301 which is a duplicate).

Instead of doing that only in a plug.
Also clear any session cookie, as that may cause an infinite redirect
loop.
@geekingfrog geekingfrog marked this pull request as ready for review May 30, 2024 20:25
Copy link
Collaborator

@StanczakDominik StanczakDominik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've deployed it on server5, tested, and it just works 👌🏻 this is amazing, thank you! That's one less annoying copypasta we have to carry around 😁

If you find those proposed messages clear and understandable, we can just merge it right away :)

lib/teiserver/account/libs/user_lib.ex Outdated Show resolved Hide resolved
lib/teiserver/account/libs/user_lib.ex Outdated Show resolved Hide resolved
geekingfrog and others added 2 commits June 3, 2024 07:32
Co-authored-by: Dominik Stańczak-Marikin <[email protected]>
Co-authored-by: Dominik Stańczak-Marikin <[email protected]>
@geekingfrog
Copy link
Contributor Author

Cool, ship it \o/

@StanczakDominik StanczakDominik merged commit 8549962 into beyond-all-reason:master Jun 3, 2024
1 check failed
@geekingfrog geekingfrog deleted the fix-server-error-banned-login branch June 3, 2024 15:41
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.

Better message when suspended from logging in
2 participants