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

login failure (and non-helpful error!) on latest development build #7241

Open
erikarn opened this issue May 24, 2024 · 3 comments
Open

login failure (and non-helpful error!) on latest development build #7241

erikarn opened this issue May 24, 2024 · 3 comments
Milestone

Comments

@erikarn
Copy link
Contributor

erikarn commented May 24, 2024

Brief summary of issue / Description of requested feature:

A freshly built development (ced5f71) mudlet, trying to log into achaea with a completely blank profile, just gave a socket disconnect error upon connecting and getting to the login prompt.

Steps to reproduce the issue / Reasons for adding feature:

  1. Fresh built mudlet, no profile
  2. Click on "achaea" and then "connect"
  3. See error

Error output / Expected result of feature

With MCCPv2 on:

(... achaea stuff)
Enter an option or enter your character's name. 
    
[ ALERT ] - Socket got disconnected.
            Reason: The remote host closed the connection
[ INFO ]  - Connection time: 00:00:00.415

With MCCPv2 compression off:

Enter an option or enter your character's name. 
[ WARN ]  - Could not log in to the game: Wrong name or password.
    
[ ALERT ] - Socket got disconnected.
            Reason: User Disconnected
[ INFO ]  - Connection time: 00:00:00.337

If I add user/pass to the profile info and click connect, then everything works A-OK.

If I disable GMCP entirely and connect, then things work fine, I login with user/pass in the telnet stream like normal.

Extra information, such as the Mudlet version, operating system and ideas for how to solve / implement:

@vadi2 vadi2 added this to the 4.18.0 milestone May 24, 2024
@mpconley
Copy link
Contributor

mpconley commented Jun 8, 2024

I recommend closing this issue as it is an Achaea issue. They have implemented Char.Login authentication but have not accounted for the case where credentials are not being sent from Mudlet. It works fine if the character name and password are inside of the latest PTB build, but closes connection when they are not there.

Screenshot 2024-06-08 at 6 35 55 AM

@SlySven
Copy link
Member

SlySven commented Jun 8, 2024

@mpconley You mean it is a "it's not me, it is you" situation? 😀

@mfontani
Copy link
Contributor

From the spec:

In case the client does not know both the character name and password, it may notify the server of this by sending an empty response. This can be used a response to any authentication method:
Char.Login.Credentials {}

Looks like they're not handling that gracefully.

If a server receives that Char.Login.Credentials {} it SHOULD basically ignore it (or tell the user that the system would have supported auto-login, but the client hasn't configured it), and not attempt to log in with an empty username/password.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants