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

Handle POST /login when client kicked back to login page #2

Open
inada-s opened this issue Oct 8, 2019 · 2 comments
Open

Handle POST /login when client kicked back to login page #2

inada-s opened this issue Oct 8, 2019 · 2 comments

Comments

@inada-s
Copy link
Owner

inada-s commented Oct 8, 2019

I've found sometimes when a client failed to connect battle server, goes back to a loginpage and requests POST /login with following parameters.

login_1      | I1008 17:20:23.472593       1 top.go:91] map[connection-id:[111111111] user-id:[XXXXXXX]]

Should handle it.

@gh0stl1ne
Copy link
Collaborator

You mean players are kicked back to the web login instead of the lobby?

@inada-s
Copy link
Owner Author

inada-s commented Oct 9, 2019

You mean players are kicked back to the web login instead of the lobby?

Yes.

I used the path POST /login for the login button in lobby server. It works fine.
When a client failed to connect a battle server, sometimes the client is kicked back to webpage (not lobby) and then, requests POST /login again, but it shows only background image.

I want to handle it but I don't know which response would be better.

@inada-s inada-s changed the title impl POST /login Handle POST /login when client kicked back to login page Oct 9, 2019
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

No branches or pull requests

2 participants