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 authentication failure and display connection errors on login form #59

Merged
merged 2 commits into from
Feb 28, 2024

Conversation

mhoran
Copy link
Owner

@mhoran mhoran commented Feb 28, 2024

No description provided.

Weechat indicates authentication failure by closing the socket.
Previously, this would result in onerror being called, causing a
reconnect loop. onerror no longer seems to be called when the connection
is closed, resolving the original issue. However, in order to present an
error to the user on authentication falure, we need to detect if onclose
was called during authentication.

Fixes #30
@mhoran mhoran merged commit ba87e9e into main Feb 28, 2024
3 of 4 checks passed
@mhoran mhoran deleted the test-connection branch February 28, 2024 13:25
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.

1 participant